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 Păstraţi Running dvs. SSH de şedinţă Când deconectaţi

Screen is like a window manager for your console. Ecranul este ca un manager de ferestre pentru dvs. de consolă. It will allow you to keep multiple terminal sessions running and easily switch between them. Aceasta vă va permite să păstraţi mai multe sesiuni de terminale de funcţionare şi uşor de a comuta între ele. It also protects you from disconnection, because the screen session doesn't end when you get disconnected. De asemenea, vă protejează de la deconectare, pentru că în sesiunea screen, nu se încheie atunci când te deconectat.

You'll need to make sure that screen is installed on the server you are connecting to. Veţi avea nevoie să vă asiguraţi că ecranul este instalat pe serverul la care vă conectaţi. If that server is Ubuntu or Debian, just use this command: În cazul în care serverul este Ubuntu sau Debian, doar Utilizaţi această comandă:

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

Now you can start a new screen session by just typing screen at the command line. Acum, puteţi începe o nouă sesiune de ecran prin simpla tastare pe ecran, la linia de comandă. You'll be shown some information about screen. Hit enter, and you'll be at a normal prompt. Veţi fi prezentat unele informaţii despre ecran. Apăsaţi enter, şi veţi fi la un prompt normală.

To disconnect (but leave the session running) Pentru a deconecta (dar lăsaţi sesiunea de rulare)

Hit Ctrl + A and then Ctrl + D in immediate succession. Hit Ctrl + A si apoi Ctrl + D în succesiune imediată. You will see the message [detached] Veţi vedea mesajul [desprinse]

To reconnect to an already running session Să se reconecteze la o sesiune deja rulează

screen -r screen-r

To reconnect to an existing session, or create a new one if none exists Să se reconecteze la o sesiune existente, sau să creaţi unul nou, în cazul în care nu există nici una

screen -D -r screen-D-R

To create a new window inside of a running screen session Pentru a crea o nouă fereastră în interiorul unei sesiuni de ecran de rulare

Hit Ctrl + A and then C in immediate succession. Hit Ctrl + A şi C, apoi în succesiune imediată. You will see a new prompt. Veţi vedea un prompt nou.

To switch from one screen window to another Pentru a trece de la fereastra pe ecran la altul

Hit Ctrl + A and then Ctrl + A in immediate succession. Hit Ctrl + A si apoi Ctrl + A în succesiune imediată.

To list open screen windows Pentru a lista de ferestre deschise pe ecran

Hit Ctrl + A and then W in immediate succession Ctrl + A rezultat şi apoi V în succesiune imediată

There's lots of other commands, but those are the ones I use the most. Există o mulţime de alte comenzi, dar acestea sunt cele folosesc cel mai mult.

This article was originally written on 12/14/06 Tagged with: Acest articol a fost scris iniţial pe 12.14.06 Etichetate cu: Adding Software Adăugarea de Software-ul , , SysAdmin Sysadmin , , Ubuntu Ubuntu

Daily Email Updates Daily Actualizări de email

You can get our how-to articles in your inbox each day for free. Aveţi posibilitatea să obţineţi modul nostru de-a articole în Inbox în fiecare zi pentru drum liber. Just enter your name and email below: Doar introduceţi numele dvs. şi e-mail de mai jos:


Name: Nume:
Email: E-mail:

Comments (3) Comentarii (3)

  1. ukay ukay

    What about keep sessions with server X redirected? Ce-i ţine sesiuni cu X server de redirectionat? (ssh -X) (ssh-X)
    It would be nice. Ar fi frumos.

    Thank you in advance Vă mulţumesc anticipat

  2. Peter Petru

    The nohup command can help you there. Comanda nohup vă poate ajuta acolo. Have a quick google and you will find out all about it. Have un Google rapid si vei afla totul despre asta.

  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. Am învăţat să folosească această comandă de mult timp în urmă calea cea mai grea, când am fost actualizarea Redhat cu mai mult de 100 de fişiere, inclusiv actualizări de kernel-ului acolo SSH şi puterea noastră de la birou a fost mort. Recovering from a half updated OS is not fun so I suggest you use “screen” when using “yum” or “apt-get”. Recuperarea dintr-o jumătate actualizată OS nu este distractiv, aşa că am sugerăm să folosiţi "ecran", atunci când se utilizează "yum" sau "apt-get".


Leave a Comment Lăsaţi un comentariu




Leave your Leave tău friendly prietenoasa comment here. comentariu aici.

If you have a computer help question, Dacă aveţi un calculator ajuta la întrebare, click here to leave it on the forums click aici pentru a lăsa pe forum instead. în schimb.

Note: Your comment may not show up immediately on the site. Notă: Comentariul dvs. să nu apară imediat pe site-ul.

Our Friends Our Friends
Getting Started Noţiuni de bază


About How-To Geek Despre "Cum să" Geek
What Is That Process? Ce este acest proces?
svchost.exe svchost.exe
jusched.exe winampa.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. Toate drepturile rezervate.