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/03/07 17:42] – [Disks and File Transfer:] 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 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.+ 
-|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>       |
 +
 +\\
  
-</code>       |tmux attach → D|Attachs the shell to the last used tmux.  | 
  
 ===== Disks and File Transfer: ===== ===== Disks and File Transfer: =====
  • computer_science/linux/linux_cheatsheet.1615138967.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)