SlideShare a Scribd company logo
1 of 14
Introduction  
screen  and  
tmux	
Hsi-Kai Wang
terminal  multiplexer	
•  screen
•  tmux
•  dtach
•  byobu
screen  &  tmux	
•  screen is a full-screen window manager that
multiplexes a physical terminal between several
processes, typically interactive shells.
•  tmux is a terminal multiplexer, switch easily between
several programs in one terminal.
•  screen and tmux is a software application that can
be used to multiplex several virtual consoles,
allowing a user to access multiple separate terminal
sessions inside a single terminal window or remote
terminal session.
screen  concept
like  as  terminal	
window
screen
often  shortcut  key	
key binding shortcut key description
help C-a ? Show key bindings
screen C-a c
Create a new window with a shell and switch to
that window
detach C-a d Detach screen from this terminal
quit C-a  Kill all windows and terminate screen
windowlist C-a " Present a list of all windows for selection
next C-a n Switch to the next window
prev C-a p Switch to the previous window
log C-a H
Begins/ends logging of the current window to
the file "screenlog.n"
copy C-a [ Enter copy/scrollback mode
paste C-a ]
Write the contents of the paste buffer to the stdin
queue of the current window
screen  configuration  -­‐‑  1	
# Display the copyright notice during startup
startup_message off
# Set scrollback line
defscrollback 1024
# Set default encoding using utf8
defutf8 on
# Set visual bell
vbell on
# Set split status always on
caption splitonly "%{= bK} %{= bG} [%n] %t @ %H"
§  Configuration file: ~/.screenrc
screen  configuration  -­‐‑  2	
# Set hardstatus always on
hardstatus alwayslastline "%{= WK} %-Lw%{= KY}%n%f %t%{-}%+Lw %{=
WM} %=| %0c:%s %Y-%m-%d"
# Set default screen
#screen -t bash 0 /bin/bash
#screen -t tcsh 1 /bin/tcsh
#screen -t ipython 2 /usr/bin/ipython
#screen –t ssh 3 ssh root@172.17.42.135
# Define bindkey
bindkey ^[c screen # create screen
bindkey ^[d detach # detach session
bindkey ^[q quit # quit session
bindkey ^[l next # next screen
bindkey ^[h prev # previous screen
bindkey ^[[ copy # copy region to buffer
bindkey ^[] paste . # paste region from buffter
screen  command	
# create screen
screen
screen -s screen_name
# connect serial console
screen /dev/ttyS0 115200 # for Linux
screen /dev/cu.usbxxxxx 115200 # for MacOSX
# list all screen
screen -ls
# re-attach screen
screen -dr [screen_name]
screen -x [screen_name]
tmux  concept
tmux  and  screen  key  map	
key binding screen tmux
help C-a ? C-b ?
screen C-a c C-b c
detach C-a d C-b d
quit C-a  C-b ?
windowlist C-a " C-b w
next C-a n C-b n
prev C-a p C-b p
log C-a H none
copy C-a [ C-b [
paste C-a ] (enter) C-b ] (space)
tmux  and  screen  
command	
screen tmux
create screen
screen
screen -s screen_name
tmux
tmux new-session -n screen_name
connect console screen /dev/ttyS0 115200 none
list screen scree –ls tmuxt list-session
re-attach screen
screen –dr [screen_name]
screen –x [screen_name]
tmux att –dr [screen_name]
tmux att [screen_name]
reference	
•  http://www.gnu.org/software/screen/
•  http://tmux.github.io/
•  http://blogger.gtwang.org/2013/11/screen-
command-examples-to-manage-linux-
terminals.html
•  http://josephj.com/entry.php?id=373
Demo  and  QA

More Related Content

What's hot

Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009Chris Sinjakli
 
20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machineYoussoufou YABRE
 
Introduction to Vim
Introduction to VimIntroduction to Vim
Introduction to VimBrandon Liu
 
Vim Hacks (OSSF)
Vim Hacks (OSSF)Vim Hacks (OSSF)
Vim Hacks (OSSF)Lin Yo-An
 
Kodar-lan - Text and editors Vi/Vim
Kodar-lan - Text and editors Vi/VimKodar-lan - Text and editors Vi/Vim
Kodar-lan - Text and editors Vi/VimTim Gremalm
 
Working Remotely (via SSH) Rocks!
Working Remotely (via SSH) Rocks!Working Remotely (via SSH) Rocks!
Working Remotely (via SSH) Rocks!Kent Chen
 
Effecting Pure Change - How anything ever gets done in functional programming...
Effecting Pure Change - How anything ever gets done in functional programming...Effecting Pure Change - How anything ever gets done in functional programming...
Effecting Pure Change - How anything ever gets done in functional programming...Tech Triveni
 
The Unix Command Line | Jim Reevior
The Unix Command Line | Jim ReeviorThe Unix Command Line | Jim Reevior
The Unix Command Line | Jim ReeviorOomph, Inc.
 
Introduction to Vim, the text editor
Introduction to Vim, the text editorIntroduction to Vim, the text editor
Introduction to Vim, the text editorVysakh Sreenivasan
 
One vagrantfile to rule them all
One vagrantfile to rule them allOne vagrantfile to rule them all
One vagrantfile to rule them allBert Van Vreckem
 

What's hot (19)

Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009
 
TMUX Rocks!
TMUX Rocks!TMUX Rocks!
TMUX Rocks!
 
20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine
 
Tmux tips and_tricks
Tmux tips and_tricksTmux tips and_tricks
Tmux tips and_tricks
 
Introduction to Vim
Introduction to VimIntroduction to Vim
Introduction to Vim
 
Vim Hacks (OSSF)
Vim Hacks (OSSF)Vim Hacks (OSSF)
Vim Hacks (OSSF)
 
Vim Vi Improved
Vim Vi ImprovedVim Vi Improved
Vim Vi Improved
 
Tên hàm
Tên hàmTên hàm
Tên hàm
 
Kodar-lan - Text and editors Vi/Vim
Kodar-lan - Text and editors Vi/VimKodar-lan - Text and editors Vi/Vim
Kodar-lan - Text and editors Vi/Vim
 
Vim basic
Vim basicVim basic
Vim basic
 
CS3241 Lab A1
CS3241 Lab A1CS3241 Lab A1
CS3241 Lab A1
 
Vim Showcase
Vim ShowcaseVim Showcase
Vim Showcase
 
Working Remotely (via SSH) Rocks!
Working Remotely (via SSH) Rocks!Working Remotely (via SSH) Rocks!
Working Remotely (via SSH) Rocks!
 
MFC Menu
MFC MenuMFC Menu
MFC Menu
 
Effecting Pure Change - How anything ever gets done in functional programming...
Effecting Pure Change - How anything ever gets done in functional programming...Effecting Pure Change - How anything ever gets done in functional programming...
Effecting Pure Change - How anything ever gets done in functional programming...
 
The Unix Command Line | Jim Reevior
The Unix Command Line | Jim ReeviorThe Unix Command Line | Jim Reevior
The Unix Command Line | Jim Reevior
 
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Introduction to Vim, the text editor
Introduction to Vim, the text editorIntroduction to Vim, the text editor
Introduction to Vim, the text editor
 
One vagrantfile to rule them all
One vagrantfile to rule them allOne vagrantfile to rule them all
One vagrantfile to rule them all
 

Similar to screen and tmux

Linux Command Line Multitasking
Linux Command Line MultitaskingLinux Command Line Multitasking
Linux Command Line MultitaskingAmr Fawzy
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Linelifeit
 
Adrian Mouat - Docker Tips and Tricks
 Adrian Mouat - Docker Tips and Tricks Adrian Mouat - Docker Tips and Tricks
Adrian Mouat - Docker Tips and TricksKevin Cross
 
Using the Command Line with Magento
Using the Command Line with MagentoUsing the Command Line with Magento
Using the Command Line with MagentoMatthew Haworth
 
Ewd senchatouch classactivity_part_i
Ewd senchatouch classactivity_part_iEwd senchatouch classactivity_part_i
Ewd senchatouch classactivity_part_ivxVistA.org
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationJacobMenke1
 
Tmux and Tmuxinator ~ Rise of the Machines
Tmux and Tmuxinator  ~ Rise of the MachinesTmux and Tmuxinator  ~ Rise of the Machines
Tmux and Tmuxinator ~ Rise of the MachinesBrian Loomis
 
Batch programming and Viruses
Batch programming and VirusesBatch programming and Viruses
Batch programming and VirusesAkshay Saini
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...Jim Birch
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7VCP Muthukrishna
 
Cme: a tool to edit and validate configuration files
Cme: a tool to edit and validate configuration filesCme: a tool to edit and validate configuration files
Cme: a tool to edit and validate configuration filesDominique Dumont
 
DEV Čtvrtkon #76 - Makefile
DEV Čtvrtkon #76 - MakefileDEV Čtvrtkon #76 - Makefile
DEV Čtvrtkon #76 - MakefileCtvrtkoncz
 
DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...
DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...
DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...DevSecCon
 

Similar to screen and tmux (20)

Linux Command Line Multitasking
Linux Command Line MultitaskingLinux Command Line Multitasking
Linux Command Line Multitasking
 
Vmware Command Line
Vmware   Command LineVmware   Command Line
Vmware Command Line
 
Adrian Mouat - Docker Tips and Tricks
 Adrian Mouat - Docker Tips and Tricks Adrian Mouat - Docker Tips and Tricks
Adrian Mouat - Docker Tips and Tricks
 
Using the Command Line with Magento
Using the Command Line with MagentoUsing the Command Line with Magento
Using the Command Line with Magento
 
Ewd senchatouch classactivity_part_i
Ewd senchatouch classactivity_part_iEwd senchatouch classactivity_part_i
Ewd senchatouch classactivity_part_i
 
Ultimate Unix Meetup Presentation
Ultimate Unix Meetup PresentationUltimate Unix Meetup Presentation
Ultimate Unix Meetup Presentation
 
ws-commands.pdf
ws-commands.pdfws-commands.pdf
ws-commands.pdf
 
Tmux and Tmuxinator ~ Rise of the Machines
Tmux and Tmuxinator  ~ Rise of the MachinesTmux and Tmuxinator  ~ Rise of the Machines
Tmux and Tmuxinator ~ Rise of the Machines
 
Bash Scripting
Bash ScriptingBash Scripting
Bash Scripting
 
Ch02.pdf
Ch02.pdfCh02.pdf
Ch02.pdf
 
Batch programming and Viruses
Batch programming and VirusesBatch programming and Viruses
Batch programming and Viruses
 
lec4.docx
lec4.docxlec4.docx
lec4.docx
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
Small Screen Development
Small Screen DevelopmentSmall Screen Development
Small Screen Development
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Docker practice
Docker practiceDocker practice
Docker practice
 
Cme: a tool to edit and validate configuration files
Cme: a tool to edit and validate configuration filesCme: a tool to edit and validate configuration files
Cme: a tool to edit and validate configuration files
 
DEV Čtvrtkon #76 - Makefile
DEV Čtvrtkon #76 - MakefileDEV Čtvrtkon #76 - Makefile
DEV Čtvrtkon #76 - Makefile
 
DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...
DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...
DevSecCon London 2017 - MacOS security, hardening and forensics 101 by Ben Hu...
 

Recently uploaded

Kubernetes go-live checklist for your microservices.pptx
Kubernetes go-live checklist for your microservices.pptxKubernetes go-live checklist for your microservices.pptx
Kubernetes go-live checklist for your microservices.pptxPrakarsh -
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies
 
Webinar - IA generativa e grafi Neo4j: RAG time!
Webinar - IA generativa e grafi Neo4j: RAG time!Webinar - IA generativa e grafi Neo4j: RAG time!
Webinar - IA generativa e grafi Neo4j: RAG time!Neo4j
 
About .NET 8 and a first glimpse into .NET9
About .NET 8 and a first glimpse into .NET9About .NET 8 and a first glimpse into .NET9
About .NET 8 and a first glimpse into .NET9Jürgen Gutsch
 
AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyRaymond Okyere-Forson
 
Generative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilGenerative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilVICTOR MAESTRE RAMIREZ
 
20240330_고급진 코드를 위한 exception 다루기
20240330_고급진 코드를 위한 exception 다루기20240330_고급진 코드를 위한 exception 다루기
20240330_고급진 코드를 위한 exception 다루기Chiwon Song
 
Top Software Development Trends in 2024
Top Software Development Trends in  2024Top Software Development Trends in  2024
Top Software Development Trends in 2024Mind IT Systems
 
Why Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfWhy Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfBrain Inventory
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?AmeliaSmith90
 
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/MLBig Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/MLAlluxio, Inc.
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesSoftwareMill
 
Cybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadCybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadIvo Andreev
 
Deep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampDeep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampVICTOR MAESTRE RAMIREZ
 
OpenChain Webinar: Universal CVSS Calculator
OpenChain Webinar: Universal CVSS CalculatorOpenChain Webinar: Universal CVSS Calculator
OpenChain Webinar: Universal CVSS CalculatorShane Coughlan
 
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsYour Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsJaydeep Chhasatia
 
Mastering Kubernetes - Basics and Advanced Concepts using Example Project
Mastering Kubernetes - Basics and Advanced Concepts using Example ProjectMastering Kubernetes - Basics and Advanced Concepts using Example Project
Mastering Kubernetes - Basics and Advanced Concepts using Example Projectwajrcs
 
ERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxAutus Cyber Tech
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionsNirav Modi
 

Recently uploaded (20)

Kubernetes go-live checklist for your microservices.pptx
Kubernetes go-live checklist for your microservices.pptxKubernetes go-live checklist for your microservices.pptx
Kubernetes go-live checklist for your microservices.pptx
 
Kawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in TrivandrumKawika Technologies pvt ltd Software Development Company in Trivandrum
Kawika Technologies pvt ltd Software Development Company in Trivandrum
 
Webinar - IA generativa e grafi Neo4j: RAG time!
Webinar - IA generativa e grafi Neo4j: RAG time!Webinar - IA generativa e grafi Neo4j: RAG time!
Webinar - IA generativa e grafi Neo4j: RAG time!
 
About .NET 8 and a first glimpse into .NET9
About .NET 8 and a first glimpse into .NET9About .NET 8 and a first glimpse into .NET9
About .NET 8 and a first glimpse into .NET9
 
AI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human BeautyAI Embracing Every Shade of Human Beauty
AI Embracing Every Shade of Human Beauty
 
Generative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-CouncilGenerative AI for Cybersecurity - EC-Council
Generative AI for Cybersecurity - EC-Council
 
20240330_고급진 코드를 위한 exception 다루기
20240330_고급진 코드를 위한 exception 다루기20240330_고급진 코드를 위한 exception 다루기
20240330_고급진 코드를 위한 exception 다루기
 
Top Software Development Trends in 2024
Top Software Development Trends in  2024Top Software Development Trends in  2024
Top Software Development Trends in 2024
 
Program with GUTs
Program with GUTsProgram with GUTs
Program with GUTs
 
Why Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdfWhy Choose Brain Inventory For Ecommerce Development.pdf
Why Choose Brain Inventory For Ecommerce Development.pdf
 
How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?How Does the Epitome of Spyware Differ from Other Malicious Software?
How Does the Epitome of Spyware Differ from Other Malicious Software?
 
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/MLBig Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
Big Data Bellevue Meetup | Enhancing Python Data Loading in the Cloud for AI/ML
 
Growing Oxen: channel operators and retries
Growing Oxen: channel operators and retriesGrowing Oxen: channel operators and retries
Growing Oxen: channel operators and retries
 
Cybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and BadCybersecurity Challenges with Generative AI - for Good and Bad
Cybersecurity Challenges with Generative AI - for Good and Bad
 
Deep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - DatacampDeep Learning for Images with PyTorch - Datacamp
Deep Learning for Images with PyTorch - Datacamp
 
OpenChain Webinar: Universal CVSS Calculator
OpenChain Webinar: Universal CVSS CalculatorOpenChain Webinar: Universal CVSS Calculator
OpenChain Webinar: Universal CVSS Calculator
 
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software TeamsYour Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
Your Vision, Our Expertise: TECUNIQUE's Tailored Software Teams
 
Mastering Kubernetes - Basics and Advanced Concepts using Example Project
Mastering Kubernetes - Basics and Advanced Concepts using Example ProjectMastering Kubernetes - Basics and Advanced Concepts using Example Project
Mastering Kubernetes - Basics and Advanced Concepts using Example Project
 
ERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptxERP For Electrical and Electronics manufecturing.pptx
ERP For Electrical and Electronics manufecturing.pptx
 
eAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspectionseAuditor Audits & Inspections - conduct field inspections
eAuditor Audits & Inspections - conduct field inspections
 

screen and tmux

  • 1. Introduction   screen  and   tmux Hsi-Kai Wang
  • 2. terminal  multiplexer •  screen •  tmux •  dtach •  byobu
  • 3. screen  &  tmux •  screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. •  tmux is a terminal multiplexer, switch easily between several programs in one terminal. •  screen and tmux is a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session.
  • 6. often  shortcut  key key binding shortcut key description help C-a ? Show key bindings screen C-a c Create a new window with a shell and switch to that window detach C-a d Detach screen from this terminal quit C-a Kill all windows and terminate screen windowlist C-a " Present a list of all windows for selection next C-a n Switch to the next window prev C-a p Switch to the previous window log C-a H Begins/ends logging of the current window to the file "screenlog.n" copy C-a [ Enter copy/scrollback mode paste C-a ] Write the contents of the paste buffer to the stdin queue of the current window
  • 7. screen  configuration  -­‐‑  1 # Display the copyright notice during startup startup_message off # Set scrollback line defscrollback 1024 # Set default encoding using utf8 defutf8 on # Set visual bell vbell on # Set split status always on caption splitonly "%{= bK} %{= bG} [%n] %t @ %H" §  Configuration file: ~/.screenrc
  • 8. screen  configuration  -­‐‑  2 # Set hardstatus always on hardstatus alwayslastline "%{= WK} %-Lw%{= KY}%n%f %t%{-}%+Lw %{= WM} %=| %0c:%s %Y-%m-%d" # Set default screen #screen -t bash 0 /bin/bash #screen -t tcsh 1 /bin/tcsh #screen -t ipython 2 /usr/bin/ipython #screen –t ssh 3 ssh root@172.17.42.135 # Define bindkey bindkey ^[c screen # create screen bindkey ^[d detach # detach session bindkey ^[q quit # quit session bindkey ^[l next # next screen bindkey ^[h prev # previous screen bindkey ^[[ copy # copy region to buffer bindkey ^[] paste . # paste region from buffter
  • 9. screen  command # create screen screen screen -s screen_name # connect serial console screen /dev/ttyS0 115200 # for Linux screen /dev/cu.usbxxxxx 115200 # for MacOSX # list all screen screen -ls # re-attach screen screen -dr [screen_name] screen -x [screen_name]
  • 11. tmux  and  screen  key  map key binding screen tmux help C-a ? C-b ? screen C-a c C-b c detach C-a d C-b d quit C-a C-b ? windowlist C-a " C-b w next C-a n C-b n prev C-a p C-b p log C-a H none copy C-a [ C-b [ paste C-a ] (enter) C-b ] (space)
  • 12. tmux  and  screen   command screen tmux create screen screen screen -s screen_name tmux tmux new-session -n screen_name connect console screen /dev/ttyS0 115200 none list screen scree –ls tmuxt list-session re-attach screen screen –dr [screen_name] screen –x [screen_name] tmux att –dr [screen_name] tmux att [screen_name]
  • 13. reference •  http://www.gnu.org/software/screen/ •  http://tmux.github.io/ •  http://blogger.gtwang.org/2013/11/screen- command-examples-to-manage-linux- terminals.html •  http://josephj.com/entry.php?id=373