Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Keep Your SSH Session Running when You Disconnect Naj vaš SSH zasedanje Running Ko izklapljate

Screen is like a window manager for your console. Screen je kot manager okno za vašo konzolo. It will allow you to keep multiple terminal sessions running and easily switch between them. To vam bo omogočilo, da bo več terminala zasedanje poteka in preprosto preklapljate med njimi. It also protects you from disconnection, because the screen session doesn't end when you get disconnected. Prav tako vas varuje pred odklopom, saj zaslon seje ne preneha, ko vi zaslužiti prekine.

You'll need to make sure that screen is installed on the server you are connecting to. Morate se prepričajte, da je zaslon nameščen na strežniku se povezujete. If that server is Ubuntu or Debian, just use this command: Če je strežnik Ubuntu ali Debian, uporabite ta ukaz:

sudo apt-get install screen sudo apt-get install screen

Now you can start a new screen session by just typing screen at the command line. Sedaj lahko začnete novo sejo zaslon, ki ga vtipkate zaslon v ukazni vrstici. You'll be shown some information about screen. Hit enter, and you'll be at a normal prompt. Odprla se vam bo pokazala nekaj informacij o zaslonu. Hit vstopijo, pa boste lahko na poziv normalno.

To disconnect (but leave the session running) Če želite prekiniti (pa prepuščajo session running)

Hit Ctrl + A and then Ctrl + D in immediate succession. Hit Ctrl + A in nato Ctrl + D v izvirnem zaporedoma. You will see the message [detached] Videli boste sporočilo, [ločiti]

To reconnect to an already running session Če želite znova, da že poteka zasedanja

screen -r screen-r

To reconnect to an existing session, or create a new one if none exists Če želite znova povezati obstoječe seje, ali ustvarite novega, če tega ni

screen -D -r screen-D-r

To create a new window inside of a running screen session Če želite ustvariti novo okno znotraj poteka zasedanja zaslonu

Hit Ctrl + A and then C in immediate succession. Hit Ctrl + C in nato v neposredni zaporedoma. You will see a new prompt. Videli boste nov poziv.

To switch from one screen window to another Če želite preklopiti z enega zaslona na drugega okna

Hit Ctrl + A and then Ctrl + A in immediate succession. Hit Ctrl + A in nato Ctrl + v izvirnem zaporedoma.

To list open screen windows Če želite seznam odprtih oken zaslon

Hit Ctrl + A and then W in immediate succession Hit Ctrl + W in nato v neposredni zaporedoma

There's lots of other commands, but those are the ones I use the most. Obstaja veliko drugih ukazov, ampak to so tisti najbolj uporabljam.

This article was originally written on 12/14/06 Tagged with: Ta članek je bil prvotno napisan na 12/14/06 Tagged with: Adding Software Dodajanje Software , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (3) Komentarji (3)

  1. ukay ukay

    What about keep sessions with server X redirected? Kaj pa vodi seje s strežnikom preusmerjen X? (ssh -X) (ssh-X)
    It would be nice. Bilo bi lepo.

    Thank you in advance Hvala vnaprej

  2. Peter Peter

    The nohup command can help you there. Nohup ukaz vam lahko pomaga tam. Have a quick google and you will find out all about it. Have hitro google in boste izvedeli vse o tem.

  3. Eduardo Sanchez Eduardo Sanchez

    I learned to use this command a long time ago the hard way when I was updating Redhat with more than 100 files including kernel updates over SSH and our the power in the office went dead. Sem se učil za uporabo tega ukaza dolgo časa nazaj težji način, ko sem bil posodabljanju Redhat z več kot 100 fotografij, vključno z jedrom posodobitve preko SSH in naša moč v pisarni se je mrtev. Recovering from a half updated OS is not fun so I suggest you use “screen” when using “yum” or “apt-get”. Opomogla od polovice posodobitev OS ni zabavno, zato sem vam predlagam uporabo "screen" ob uporabi "yum" ali "apt-get".


Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.