job control

  1. man signal
  2. # how to quit?
  3. sleep 20
  4. ctrl c # send a signal SIGINT
  5. ctrl \ # send a signal SIGQUIT
  6. ctrl z # send a signal SIGSTOP
  7. #nohup will let the job keep running when job accept a hup signal
  8. nohup sleep 2000 & # & will let commands run in background
  9. jobs # will list all the jobs
  10. bg %1 # continue the first job which is in the background
  11. kill -STOP %1 # will send a stop signal to the first job
  12. kill -HUP %1 # will send a hup signal to the first job
  13. 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

  • windows
    • panels ```bash

      detached the session

      ctrl b d

reattach to the session

tmux a

create a new sessions names foobar

tmux new -t foobar

list the sessions

tmux ls

tmux a -t foobar ```

dotfiles

remote machines

https://www.youtube.com/watch?v=e8BO_dYxk5c

https://missing.csail.mit.edu/2020/command-line/