parent
5318df9a1d
commit
9b480e39af
2 changed files with 44 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||||
|
A Cheatsheet Intro to Tmux |
||||||
|
========================== |
||||||
|
|
||||||
|
"Tmux Tutorial" |
||||||
|
https://leimao.github.io/blog/Tmux-Tutorial/ |
||||||
|
|
||||||
|
|
||||||
|
Key shortcuts commands: |
||||||
|
|
||||||
|
|-----------------|------------------------------| |
||||||
|
| Ctrl+b c | Create a new shell (screen) | |
||||||
|
| Ctrl+b d | Detach from the current tmux session | |
||||||
|
|-----------------|------------------------------| |
||||||
|
| Ctrl+b 0 | Switch to screen 0 | |
||||||
|
| Ctrl+b 1 | Switch to screen 1 | |
||||||
|
| ... | Switch to screen "n" | |
||||||
|
| Ctrl+b 9 | Switch to screen 9 | |
||||||
|
| Ctrl+b n | Switch to next screen (will wrap around from the last screen to screen 0) | |
||||||
|
| Ctrl+b p | Switch to previous screen | |
||||||
|
|-----------------|------------------------------| |
||||||
|
|
||||||
|
|
@ -0,0 +1,22 @@ |
|||||||
|
TODO tutorial / guide for tmux |
||||||
|
============================== |
||||||
|
|
||||||
|
|
||||||
|
## [ ] Terminologies |
||||||
|
|
||||||
|
* "session" : the entire session |
||||||
|
* "screen" : a separate shell / CLI / TUI program spawned by tmux and whose display is accesible from tmux. |
||||||
|
|
||||||
|
## [ ] Cheatsheet |
||||||
|
|
||||||
|
See its own cheatsheet draft. |
||||||
|
|
||||||
|
|
||||||
|
## [ ] Using tmux to have persistent terminal on HPC |
||||||
|
|
||||||
|
### Draft: |
||||||
|
|
||||||
|
The tmux process should be run on the login node instead of the compute node. |
||||||
|
Spawn as many screens as from one or more screen(s) / shell(s) within the tmux session. |
||||||
|
For heavier process, we should launch the "salloc" to get the shell on the compute node before running the heavy process. |
||||||
|
|
Loading…
Reference in new issue