Sei sulla pagina 1di 1

Cheatsheet:
GNU
Screen





























Latest
Stable:
4.00.

03
(released
2008­08­08)


(Most
Commonly
Used)
Command­Line
Options:


Prints
list
of
running
sessions
 Start
session
and
name
the
initial

`‐ls’


or


`‐list’
 `‐t
[name]’

(usually
in
form
pid.tty.host)

 window

`‐r
[pid.sessionname]’
 Resume
a
detached
screen
session
 `‐v’
 Prints
version
#

Set
the
new
session
name
instead
 Attach
to
a
session
which
is
already

`‐S
sessionname'
 `‐x’

of
the
default
tty.host
suffix

 attached
(multi‐display
mode)


(Most
Commonly
Used)
Key
Bindings
&
.screenrc
Commands:


Command

Default
Key
Binding
 Name
 Description


C‐a


:
 colon
 Enter
a
screen
command



C‐a


“
 windowlist
‐b
 Present
a
list
of
active
windows

Enter
Copy
Mode:

While
in
Copy
mode
use
the
following
to
navigate:

C‐a


[
 

C‐u

scrolls
half
page
up;






C‐d
scrolls
half
page
down;


C‐]
(when
in
Copy
Mode)
 
 Exits
Copy
Mode

C‐a


A
 title
[name]
 Allows
user
to
rename
the
current
window

C‐a


b
 break
 Sends
a
break
to
the
tty

C‐a


B
 pow_break
 Close
&
reopen
the
tty
line

C‐a


c
 screen
 Create
a
new
window
w/
shell
and
switch
to
it

C‐a


C
 clear
 Clear
the
window

C‐a


d
 detach
 Detach
screen
from
this
terminal

C‐a


D
 pow_detach
 Detach
&
logout

C‐a


h
 hardcopy
[file]
 Copy
current
window’s
contents
to
file

Displays
window
info:
ie.
(11,39)/(80,39)+1000
+flow
UTF‐8
0(win1)

C‐a


i
 info

(cursor_x,
cursor_y)/(win_width,
win_height)+scrollbackbuffersize

C‐a


K
 kill
 Destroy
the
current
window

C‐a


n


or


C‐a


<SPC>
 next
 Switch
to
the
next
window

C‐a


p


or


C‐a


<BSPC>
 prev
 Switch
to
the
previous
window

C‐a


S
 split
 Split
the
current
window
into
two
new
ones

C‐a


X
 remove
 Kill
the
current
region
in
a
split
window
session

C‐a


z
 suspend
 Suspend
screen

C‐a


C‐\
 quit
 Kill
all
windows
and
terminate
screen

C‐a


?
 help
 Show
key
bindings


Useful
Tips:

caption
always
'%c:%s'

places
running
clock
at
bottom
of
screen
session
to
keep
an
ssh
session
alive

More
Resources:

Useful
FAQ
page:


http://www4.informatik.uni‐erlangen.de/~jnweiger/screen‐faq.html

Man(help)
page:


http://www.gnu.org/software/screen/manual/


Last
Modified:
2009‐09‐29


Potrebbero piacerti anche