Screen

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with 'Screen alias sc='screen -d -R' screen new screen alias sl='screen -list' list screens alias ss='screen -S `date "+screen_%d-%b-%Y_%k:%M.%S"`' new date and time alias us='screen …')
 
m (Keyboard Shortcuts)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Screen
+
Useful commands and aliases for screen
  
alias sc='screen -d -R' screen new screen
+
<source lang="bash">
alias sl='screen -list' list screens
+
# usage: sc <screen_name>
alias ss='screen -S `date "+screen_%d-%b-%Y_%k:%M.%S"`' new date and time
+
# creates a new screen, or connects to an existing screen called <screen_name>
alias us='screen -d -R uni' run screen uni
+
alias sc='screen -d -R'
  
 +
# usage: sl
 +
# lists existing screens
 +
alias sl='screen -list'
  
detach screen = ctrl + a, d
+
# 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 >
 +
 
 +
To detach from a screen, and leave it running use: <code>Ctrl + A, D</code><br>
 +
To send a <code>^A</code> character to the program running in the screen (e.g. minicom) use: <code>Ctrl + A, A</code><br>
 +
For a list of key bindings use: <code>Ctrl + A, ?</code>
 +
 
 +
=== Keyboard Shortcuts ===
 +
{|
 +
! Keystroke !! Action
 +
|-
 +
| Ctrl+A \ || Quit screen
 +
|-
 +
| Ctrl+A i || Show port info
 +
|-
 +
| Ctrl+A c || Create new window
 +
|-
 +
| Ctrl+A k || Close window
 +
|-
 +
| Ctrl+A n || Goto next window
 +
|-
 +
| Ctrl+A w || List windows
 +
|-
 +
| Ctrl+A [0-9] || Goto numbered window (0-9)
 +
|}
 +
 
 +
=== Serial Port ===
 +
<source lang="bash">
 +
screen /dev/ttyUSB0 9600
 +
 
 +
screen /dev/ttySX baud_rate,[cs8|cs7],[ixon|-ixon],[ixoff|-ixoff],[istrip|-istrip]
 +
</source>

Latest revision as of 19:19, 12 August 2013

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`'

To detach from a screen, and leave it running use: Ctrl + A, D
To send a ^A character to the program running in the screen (e.g. minicom) use: Ctrl + A, A
For a list of key bindings use: Ctrl + A, ?

[edit] Keyboard Shortcuts

Keystroke Action
Ctrl+A \ Quit screen
Ctrl+A i Show port info
Ctrl+A c Create new window
Ctrl+A k Close window
Ctrl+A n Goto next window
Ctrl+A w List windows
Ctrl+A [0-9] Goto numbered window (0-9)

[edit] Serial Port

screen /dev/ttyUSB0 9600
 
screen /dev/ttySX baud_rate,[cs8|cs7],[ixon|-ixon],[ixoff|-ixoff],[istrip|-istrip]
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox