Subscribe to How-To Geek Mag-subscribe sa Paano-Upang Geek

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 Panatilihin ang iyong mga SSH Session Tumatakbo kapag ka Idiskonekta

Screen is like a window manager for your console. Screen ay tulad sa isang window manager para sa inyong console. It will allow you to keep multiple terminal sessions running and easily switch between them. Ito ay magpapahintulot sa inyo na mapanatili ang maramihang mga terminal ng mga sesyon ng pagtakbo at madaling lumipat sa pagitan ng mga ito. It also protects you from disconnection, because the screen session doesn't end when you get disconnected. Ito rin ay nagtatanggol sa iyo mula sa pagtatanggal, dahil sa screen ng sesyon ay hindi katapusan kapag ikaw ay makakuha ng putul-putol.

You'll need to make sure that screen is installed on the server you are connecting to. Kailangan mong siguraduhin na ang screen ay nai-install sa server mo ay pagkonekta sa. If that server is Ubuntu or Debian, just use this command: Kung na ang server ay Ubuntu o Debian, kailangan lang gamitin ang command na ito:

sudo apt-get install screen sudo APT-i-install ang makakuha ng screen

Now you can start a new screen session by just typing screen at the command line. Ngayon ay maaari kang magsimula ng isang bagong session ng screen sa pamamagitan lamang ng pag-type ng screen na sa linya ng command. You'll be shown some information about screen. Hit enter, and you'll be at a normal prompt. Ikaw ay ipinapakita sa ilang mga impormasyon tungkol sa screen. Pindutin ang enter, at ikaw ay nasa isang normal na prompt.

To disconnect (but leave the session running) Para idiskonekta (pero iwan ang session tumatakbo)

Hit Ctrl + A and then Ctrl + D in immediate succession. Pindutin ang Ctrl + A at pagkatapos Ctrl + D sa agarang sunod. You will see the message [detached] Makikita mo ang mensaheng [hiwalay]

To reconnect to an already running session Upang makipag-ugnayan muli sa isang nagpapatakbo na ng session

screen -r screen-r

To reconnect to an existing session, or create a new one if none exists Upang makipag-ugnayan muli sa isang umiiral na sesyon, o lumikha ng isang bagong isa kung wala umiiral

screen -D -r screen-D-r

To create a new window inside of a running screen session Upang lumikha ng isang bagong bintana sa loob ng isang session sa pagtakbo ng screen

Hit Ctrl + A and then C in immediate succession. Pindutin ang Ctrl + A at C sa agarang sunod. You will see a new prompt. Makikita mo ang isang bagong prompt.

To switch from one screen window to another Upang lumipat mula sa isang screen na window sa ibang

Hit Ctrl + A and then Ctrl + A in immediate succession. Pindutin ang Ctrl + A at pagkatapos Ctrl + A ng agarang-sunod.

To list open screen windows Upang buksan ang listahan ng mga bintana ng screen

Hit Ctrl + A and then W in immediate succession Pindutin ang Ctrl + A at pagkatapos W sa agarang sunod

There's lots of other commands, but those are the ones I use the most. Mayroong maraming mga iba pang utos, ngunit ang mga ito ay ang mga gamit ko sa pinaka.

This article was originally written on 12/14/06 Tagged with: Ang artikulong ito ay orihinal na isinulat sa 12/14/06 Tagged with: Adding Software Pagdaragdag ng Software , , SysAdmin SysAdmin , , Ubuntu Ubuntu

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (3) Comments (3)

  1. ukay ukay

    What about keep sessions with server X redirected? Ano ang tungkol sa patuloy na session ng server may X-redirect? (ssh -X) (ssh-X)
    It would be nice. Gusto Ito ay nice.

    Thank you in advance Maraming salamat in advance

  2. Peter Pedro

    The nohup command can help you there. Ang nohup command na maaaring makatulong sa iyo doon. Have a quick google and you will find out all about it. Magkaroon ng isang mabilis na google at makikita mo ang lahat ng tungkol dito.

  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. Natutunan ko na gumamit ng command na ito ng isang mahabang oras sa nakaraan ang matigas na paraan kapag ako ay pag-update ng RedHat na may higit sa 100 mga file na kasama na ang update ng kernel sa SSH at sa aming kapangyarihan sa opisina ng nagpunta ang mga patay. Recovering from a half updated OS is not fun so I suggest you use “screen” when using “yum” or “apt-get”. Recovering mula sa isang kalahating-update ng OS na ito ay hindi masaya kaya Iminumungkahi kong gamitin mo ang "screen" kapag gumagamit ng "yum" o "APT-makukuha".


Leave a Comment Iwanan ng isang Puna




Leave your Iwanan ang iyong mga friendly friendly comment here. puna dito.

If you have a computer help question, Kung ikaw ay may isang computer ng tulong tanong, click here to leave it on the forums i-click dito upang mag-iwan ito sa forums instead. sa halip ng.

Note: Your comment may not show up immediately on the site. Tandaan: Ang iyong puna ay maaaring hindi magpapakita agad sa site.

Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
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.