个人工具

UbuntuHelp:Screen

来自Ubuntu中文

Wikibot讨论 | 贡献2009年5月18日 (一) 17:40的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/Screen}} {{Languages|UbuntuHelp:Screen}} '''Screen''' is a terminal multiplexer, which allows a user to ...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Screen is a terminal multiplexer, which allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session (such as when using SSH).

Installation

The screen package can be installed on Ubuntu using any method. Starting with the Jaunty release, the screen-profiles package provides advanced features such as status bars, clocks, and notifiers. The package can also be manually installed on previous Ubuntu releases.

Usage

Screen can be started by typing

screen

in a terminal. Press Enter after reading the introductory text. Virtual terminals in Screen can be manipulated by pressing the Ctrl+A key combination, and subsequently pressing a key to execute one of the commands given below:

  • c creates a new virtual console
  • n switches to the next available virtual console
  • p switches back to the previous virtual console
  • " lists all available virtual consoles and their assigned numbers
  • hitting a number key brings the corresponding virtual console to the foreground
  • Esc lets you scroll back and forth in your terminal output
  • d detatches the current screen sessions and brings you back to the normal terminal

When a Screen session is detached, the processes that were running inside it aren't stopped. You can re-attach a detached session by typing

screen -r

in a terminal

To remove the annoying copyright notice at startup, edit your /etc/screenrc with
gksudo gedit /etc/screenrc
and remove the hash which begins the line
#startup_message off

Save the file, and you will not see it again :D For further information and more advanced commands, you can refer to the screen man page.

Other links