computer_science:linux:linux_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer_science:linux:linux_cheatsheet [2021/08/05 07:42] – [Jobs:] carlossousacomputer_science:linux:linux_cheatsheet [2023/12/01 12:07] (current) – external edit 127.0.0.1
Line 21: Line 21:
  
 </code>       |fg %2|<n> being the value from a job.| </code>       |fg %2|<n> being the value from a job.|
-|tmux|Opens a shell so the user can logout and the process keeps running in the background.|<code bash> 
-tmux 
  
 +\\
  
-</code>       |tmux →CTRL+B   tmux starts the shell, CTRL+B-D puts it in the background. This prevents that if a user logged in via SSH, a software (for example a game server) to terminate once the user logged out.     CTRL+B - % - New Tab Horizontally    CTRL+B - " - New Tab Vertically    CTRL+B - Arrows - Move in Tabs    + 
-|tmux attach|Attachs the shell to the tmux shell in the background|<code bash>+===== tmux ===== 
 + 
 +^Command^Description^Syntax| 
 +|tmux list-sessions|Shows all live tmux sessions|<code> 
 +tmux list-sessions 
 + 
 +</code>  
 +|tmux attach| \\ Attaches to the last active tmux session. \\  \\ The session can be specified. \\ |<code>
 tmux attach tmux attach
  
 +</code><code>
 +tmux attach-session -t <sessionNumber>
 +
 +</code>  |
 +|CTRL+B - D|Dettachs to the current tmux session|<code>
 +CTRL+B - D
 +
 +</code>       |
 +|CTRL+B - %|Creates a New Horizontally Aligned Tab|<code>
 +CTRL+B - %
 +
 +</code>       |
 +|CTRL+B - "|Creates a New Vertically Aligned Tab|<code>
 +CTRL+B - "
 +
 +</code>       |
 +|CTRL+B - Arrows|Moves to existent Tabs|<code>
 +CTRL+B - Arrows
  
-</code>       |tmux attach → D|Attachs the shell to the last used tmux.  |+</code>       |
  
 \\ \\
  • computer_science/linux/linux_cheatsheet.1628149342.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)