===== Screen: ===== ^ Commando ^ Resultaat ^ Overig ^ | screen | Starts screen session | | | screen -S //name// | Starts screen session //name// | use descriptive name | | ctrl+a d | Detach from screen session | | | screen -r | Resumes screen session | | | screen -r //name// | Resumes screen session //name// | Needed if multiple sessions are available (or by ID) | | screen -ls | List active screen sessions (detached) | output: 10835.pts-0.linuxize-desktop (Detached)| | screen -r 10835 | Restore session by ID | | === From inside (a) screen (session): === ^ Commando ^ Resultaat ^ Overig ^ | Ctrl+a c | Create a new window (with shell). | | | Ctrl+a " | List all windows. | | | Ctrl+a 0 | Switch to window 0 (by number). | | | Ctrl+a A | Rename the current window. | | | Ctrl+a S | Split current region horizontally into two regions. | | | Ctrl+a "pipe" | Split current region vertically into two regions. | | | Ctrl+a tab | Switch the input focus to the next region. | | | Ctrl+a Ctrl+a | Toggle between the current and previous windows | | | Ctrl+a Q | Close all regions but the current one. | | | Ctrl+a X | Close the current region. | | ===== tmux ===== | new session | tmux new -s sessionname | | detach | ctrl+b d | | show tmux sessions | tmux ls | | attach to last session | tmux a | | attach to session name | tmux a -t name | | split vertical | ctrl+b % | | split horizontal | ctrl+b " | | switch to pane direction | ctrl+b + ↑ ↓ ← → | | move to next session | ctrl+b ) | | move to previous session | ctrl+b ( |