Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

Screen & Tmux/shaare/ONJlkA

  • linux
  • linux

Screen (Terminal Multiplexer)

  • Multi-terminal sessions in one window
  • Alt+A | → split vertical
  • Alt+A Shift+S → split horizontal
  • Alt+A Tab → switch windows
  • Alt+A C → create new session
  • screen -r → reconnect to detached session
  • screen -r [id] → recover session by ID

TMUX (Terminal Multiplexer)

  • Ctrl+B Shift+% → split window horizontally
  • Ctrl+B D → detach session
  • Ctrl+B Arrow Keys → move between panes
  • Ctrl+B Shift+" → split window vertically
  • tmux ls → list sessions
  • tmux a → resume last session
  • tmux new -s name → create named session
  • Ctrl+B C → new window
  • Ctrl+B N → switch to next window
  • tmux attach-session -t 0 → attach session ID 0
  • Ctrl+B , → rename window
  • tmux kill-session -t 0 → kill session ID 0

TMUX Advanced Commands

  • tmux new -s name → new named session
  • Ctrl+B C → new window
  • Ctrl+B N → switch to next window
  • tmux attach-session -t 0 → attach session 0
  • Ctrl+B , → rename window
  • tmux kill-session -t 0 → kill session 0
1 month ago Permalink
cluster icon
  • Basic File Commands / File Search Commands : touch one two three → Create 3 files mkdir folder → Make directory mv -R / cp -R → Move or copy folder including subfolders find . -name "geor...
  • System information, root recovery, environment variables, shortcuts : Finding System Information cat /etc/redhat-release → Red Hat version uname -a → Linux hostname, kernel, architecture dmidecode → hardware, BIOS, syst...
  • Special Permissions (SetUID, SetGID, Sticky Bit) : chmod u+s xyz.sh → add SetUID (user-level special permission) chmod g+s xyz.sh → add SetGID (group-level special permission) chmod u-s xyz.sh → remov...
  • File Display Commands / Filters / Text Processing Input : File Display Commands cat → Show entire content cat -A → Show non-printable characters more → Paginate output less → Same as more but allows navigatio...
  • SED: Stream Editor for Text Manipulation : Basic Replace Syntax: sed -i 's/KENNY/LENNY/g' filename Substitute all occurrences of "KENNY" with "LENNY" Delete Line Containing String: s...


(19)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community