job control
man signal
# how to quit?
sleep 20
ctrl c # send a signal SIGINT
ctrl \ # send a signal SIGQUIT
ctrl z # send a signal SIGSTOP
#nohup will let the job keep running when job accept a hup signal
nohup sleep 2000 & # & will let commands run in background
jobs # will list all the jobs
bg %1 # continue the first job which is in the background
kill -STOP %1 # will send a stop signal to the first job
kill -HUP %1 # will send a hup signal to the first job
kill -KILL %1 # kill the first job no matter what
terminal multiplexers
tmux
: https://www.ruanyifeng.com/blog/2019/10/tmux.html
let you create different workspaces that you can work in. In this way, you don’t need have to open a lot of terminal windows
has a huge variety of functionality
it will let you rearrange the environment and it will let you have different seesions
sessions
reattach to the session
tmux a
create a new sessions names foobar
tmux new -t foobar
list the sessions
tmux ls