From 9b480e39afe5020d8a971513285a41ebc82eedac Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Mon, 23 Jan 2023 17:04:47 -0500 Subject: [PATCH] * Added basic info concerning tmux: Starting with the cheatsheet. --- terminal/20221122.tmux-cheatsheet.md | 22 ++++++++++++++++++++++ terminal/20221124.tmux-TODO.md | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 terminal/20221122.tmux-cheatsheet.md create mode 100644 terminal/20221124.tmux-TODO.md diff --git a/terminal/20221122.tmux-cheatsheet.md b/terminal/20221122.tmux-cheatsheet.md new file mode 100644 index 0000000..156f0ee --- /dev/null +++ b/terminal/20221122.tmux-cheatsheet.md @@ -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 | +|-----------------|------------------------------| + + diff --git a/terminal/20221124.tmux-TODO.md b/terminal/20221124.tmux-TODO.md new file mode 100644 index 0000000..7801d00 --- /dev/null +++ b/terminal/20221124.tmux-TODO.md @@ -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. +