Screen
From Attie's Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
− | + | Useful commands and aliases for screen | |
− | < | + | <source lang="bash"> |
− | + | # usage: sc <screen_name> | |
− | + | # creates a new screen, or connects to an existing screen called <screen_name> | |
− | alias | + | alias sc='screen -d -R' |
− | + | ||
− | alias | + | # usage: sl |
+ | # lists existing screens | ||
+ | alias sl='screen -list' | ||
− | + | # usage: ss | |
− | </ | + | # creates a new screen using the current date and time for its name |
+ | alias ss='screen -S screen_`date "+%d-%b-%Y_%k:%M.%S"`' | ||
+ | |||
+ | # usage: qs | ||
+ | # used to quit the current screen - must be used from inside a screen | ||
+ | alias qs='kill `echo $STY|cut -d "." -f 1`' | ||
+ | </source > |
Revision as of 21:14, 24 March 2010
Useful commands and aliases for screen
# usage: sc <screen_name> # creates a new screen, or connects to an existing screen called <screen_name> alias sc='screen -d -R' # usage: sl # lists existing screens alias sl='screen -list' # usage: ss # creates a new screen using the current date and time for its name alias ss='screen -S screen_`date "+%d-%b-%Y_%k:%M.%S"`' # usage: qs # used to quit the current screen - must be used from inside a screen alias qs='kill `echo $STY|cut -d "." -f 1`'