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:47] – [tmux] 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.  | 
-|tmux attach|Attachs the shell to the tmux shell in the background|<code bash> 
-tmux attach 
- 
- 
-</code>       |tmux attach → D|Attachs the shell to the last used tmux.  | 
  
 ===== tmux ===== ===== tmux =====
  
 ^Command^Description^Syntax| ^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
 +
 +</code><code>
 +tmux attach-session -t <sessionNumber>
 +
 +</code>  |
 |CTRL+B - D|Dettachs to the current tmux session|<code> |CTRL+B - D|Dettachs to the current tmux session|<code>
 CTRL+B - D CTRL+B - D
  
-</code>     |+</code>       |
 |CTRL+B - %|Creates a New Horizontally Aligned Tab|<code> |CTRL+B - %|Creates a New Horizontally Aligned Tab|<code>
 CTRL+B - % CTRL+B - %
  
-</code>     |+</code>       |
 |CTRL+B - "|Creates a New Vertically Aligned Tab|<code> |CTRL+B - "|Creates a New Vertically Aligned Tab|<code>
 CTRL+B - " CTRL+B - "
  
-</code>     |+</code>       |
 |CTRL+B - Arrows|Moves to existent Tabs|<code> |CTRL+B - Arrows|Moves to existent Tabs|<code>
 CTRL+B - Arrows CTRL+B - Arrows
  
-</code>     |+</code>       |
  
 \\ \\
  • computer_science/linux/linux_cheatsheet.1628149636.txt.gz
  • Last modified: 2023/12/01 12:07
  • (external edit)