tmuxnew-ssessionName## Detached mode:#tmux new -d -s sessionName
List sessions
tmuxls
Attach a session
tmuxa-tsessionName
Detach a session
C-a + d
Send a command to a detached session
tmux send-keys -t sessionName.0 "echo 'Hello world'" ENTER
Split panes for detached sessions
tmuxsplitw-h-p50-tsessionName:1.0# -p percentage of the display for the created pane# -h or -v # horizontal/vertical splitting## if we need to do it again we may need to select the pane we want to split firsttmuxselect-pane-tsessionName:1.0tmuxsplitw-h-p50-tsessionName:1.0
Compress file
tar -zcvf outputFileName folderToCompress
unzip file
sudoaptinstallunzip#(ubuntu)unziptarget_file.zip
Text processing
Get specific line from file
sed-nLINEptarget_file
awk > sed for big files
Substitute char in big file
aws'{gsub(/old/,"NEW"); print}'in_file>out_file
Might require LC_ALL=C at the beginning depending on in_file encoding