1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

The Linux "screen" Terminal Window Manager

Command Summary


Command Summary

Interaction with Screen is mostly through keyboard shortcuts, but there are various usefull commands for which there is no keyboard shortcut. So the software provides a special keyboard shortcut that presents an input field where you can type in any Screen command.

The keyboard shortcut Ctrl-a : (Ctrl-a followed pressing the colon key) allows you to enter commands explicitly (by their names). All keyboard shortcuts start with Ctrl-a (unless the default command character has been changed). Ctrl-a means: while you hold down the control key (Ctrl) you press the a key.

acladd usernames: Allow other users in this session.
aclchg usernames permbits list: Change a user's permissions.
acldel username: Disallow other user in this session.
aclgrp usrname [groupname]: Inherit permissions granted to a group leader.
aclumask [users]+\-bits ...: Predefine access to new windows.
activity message: Set the activity notification message.
addacl usernames: Synonym to acladd.
allpartial state: Set all windows to partial refresh.
at [ident][#|*|%] command [args]: Execute a command at other displays or windows.
autodetach state: Automatically detach the session on SIGHUP.
autonuke state: Enable a clear screen to discard unwritten output.
bell _msg [message]: Set the bell notification message.
bind key [command [args]]: Bind a command to a key.
bindkey [opts] [string [cmd args]]: Bind a string to a series of keystrokes.
break [duration]: Send a break signal to the current window.
breaktype [tcsendbreak | TCSBRK | TIOCSBRK]: Specify how to generate breaks.
bufferfile [exchange-file]: Select a file for screen-exchange.
c1 [state]: Change c1 code processing.
caption mode [string]: Change caption mode and string.
chacl usernames permbits list: Synonym to aclchg.
charset set: Change character set slot designation.
chdir [directory]: Change the current directory for future windows.
clear : Clear the window screen.
colon : Enter a screen command.
command : Simulate the screen escape key.
compacthist [state]: Selects compaction of trailing empty lines.
console [state]: Grab or ungrab console output.
copy : Enter copy mode.
copy _reg [key]: Removed. Use paste instead.
crlf state: Select line break behavior for copying.
debug state: Suppress/allow debugging output.
defautonuke state: Select default autonuke behavior.
defbreaktype [tcsendbreak | TCSBRK | TIOCSBRK]: Specify the default for generating breaks.
defc1 state: Select default c1 processing behavior.
defcharset [set]: Change defaul character set slot designation.
defescape xy: Set the default command and meta characters.
defflow fstate: Select default flow control behavior.
defgr state: Select default GR processing behavior.
defhstatus [status]: Select default window hardstatus line.
defkanji wtype: Select default GR processing behavior.
deflogin state: Select default utmp logging behavior.
defmode mode: Select default file mode for ptys.
defmonitor state: Select default activity monitoring behavior.
defobuflimit limit: Select default output buffer limit.
defscrollback num: Set default lines of scrollback.
defshell command: Set the default program for new windows.
defsilence state: Select default idle monitoring behavior.
defslowpaste msec: Select the default inter-character timeout when pasting.
defwrap state: Set default line-wrapping behavior.
defwritelock on|off|auto: Set default writelock behavior.
defzombie [keys]: Keep dead windows.
detach : Disconnect screen from the terminal.
digraph : Enter digraph sequence.
displays : List currently active user interfaces.
dumptermcap : Write the window's termcap entry to a file.
echo [-n] message: Display a message on startup.
escape xy: Set the command and meta characters.
exec [[fdpat] command [args ...]]: Run a subprocess (filter).
fit : Change window size to current display size.
flow [fstate]: Set flow control behavior.
focus : Move focus to next region.
gr [state]: Change GR charset processing.
hardcopy : Write out the contents of the current window.
hardcopy _append state: Append to hardcopy files.
hardcopydir directory: Place, where to dump hardcopy files.
hardstatus [state]: Use the hardware status line.
height [lines]: Set display height.
help : Display current key bindings.
history : Find previous command beginning ....
hstatus status: Change the window's hardstatus line.
info : Display terminal settings.
ins _reg [key]: Removed, use paste instead.
kanji wtype [dtype]: Set the kanji type of a window.
kill : Destroy the current window.
lastmsg : Redisplay the last message.
license : Display licensing information.
lockscreen : Lock the controlling terminal.
log [state]: Log all output in the current window.
logfile filename: Place where to collect logfiles.
login [state]: Log the window in `/etc/utmp'.
logtstamp [state]: Configure logfile time-stamps.
mapdefault : Use only the default mapping table for the next keystroke.
mapnotnext : Don't try to do keymapping on the next keystroke.
maptimeout timo: Set the inter-character timeout used for keymapping.
markkeys string: Rebind keys in copy mode.
meta : Insert the command character.
monitor [state]: Monitor activity in window.
msgminwait sec: Set minimum message wait.
msgwait sec: Set default message wait.
multiuser state: Go into single or multi user mode.
nethack state: Use nethack-like error messages.
next : Switch to the next window.
nonblock state: Disable flow control to the current display.
number [n]: Change/display the current window's number.
obuflimit [limit]: Select output buffer limit.
only : Kill all other regions.
other : Switch to the window you were in last.
partial state: Set window to partial refresh.
password [crypted_pw]: Set reattach password.
paste [src_regs [dest_reg]]: Paste contents of paste buffer or registers somewhere.
pastefont [state]: Include font information in the paste buffer.
pow _break: Close and Reopen the window's terminal.
pow _detach: Detach and hang up.
pow _detach_msg [message]: Set message displayed on pow_detach.
prev : Switch to the previous window.
printcmd [cmd]: Set a command for VT100 printer port emulation.
process [key]: Treat a register as input to screen.
quit : Kill all windows and exit.
readbuf : Read the paste buffer from the screen-exchange file.
readreg [reg [file]]: Load a register from paste buffer or file.
redisplay : Redisplay the current window.
register key string: Store a string to a register.
remove : Kill current region.
removebuf : Delete the screen-exchange file.
reset : Reset the terminal settings for the window.
screen [opts] [n] [cmd [args]]: Create a new window.
scrollback num: Set size of scrollback buffer.
select [n]: Switch to a specified window.
sessionname [name]: Name this session.
setenv [var [string]]: Set an environment variable for new windows.
shell command: Set the default program for new windows.
shelltitle title: Set the default name for new windows.
silence [state|seconds]: Monitor a window for inactivity.
silencewait seconds: Default timeout to trigger an inactivity notify.
sleep num: Pause during startup.
slowpaste msec: Slow down pasting in windows.
sorendition [attr [color]]: Change text highlighting.
split : Split region into two parts.
startup _message state: Display copyright notice on startup.
stuff string: Stuff a string in the input buffer of a window.
su [username [password [password2]]]: Identify a user.
suspend : Put session in background.
term term: Set $TERM for new windows.
termcap term terminal-tweaks [window-tweaks]: Tweak termcap entries for best performance.
terminfo term terminal-tweaks [window-tweaks]: Ditto, for terminfo systems.
termcapinfo term terminal-tweaks [window-tweaks]: Ditto, for both systems.
time : Display time and load average.
title [windowtitle]: Set the name of the current window.
umask [users]+\-bits ...: Synonym to aclumask.
unsetenv var: Unset environment variable for new windows.
vbell [state]: Use visual bell.
vbell _msg [message]: Set vbell message.
vbellwait sec: Set delay for vbell message.
version : Display screen version.
wall message: Write a message to all displays.
width [num]: Set the width of the window.
windows : List active windows.
wrap [state]: Control line-wrap behavior.
writebuf : Write paste buffer to screen-exchange file.
writelock on|off|auto: Grant exclusive write permission.
xoff : Send an XOFF character.
xon : Send an XON character.
zombie [keys]: Keep dead windows.

Many of these commands can be executed using keyboard shortcuts.

Various commands can also be evoked through command line options.

If you are working from a machine running Microsoft Windows, you can use the utility PuTTY with an ssh connection to a remote Linux server, and then run screen from there.

  1. About.com
  2. Technology
  3. Linux
  4. Linux HowTos
  5. Bash How-To's
  6. The Linux Screen Remote Terminal Window Manager - Command Summary

©2014 About.com. All rights reserved.