bash - shivamvats/notes GitHub Wiki

Bash scripting guide: https://tldp.org/LDP/abs/html/index.html

alias

When programming in C++, it useful to define alias xrun="make && ./xtensor_test" as often as you can to make playing with C++ code more python-like.

ls

du

  1. du -sh -- *: Shows the size of each directory in the current directory.

watch

Run a program periodically.

Suspending Jobs

  • C-z : suspend the current job and move it to the background.
  • jobs : list all jobs.
  • jobs -s : list all suspended jobs.
  • kill %n : kill job number n as read from jobs command.
⚠️ **GitHub.com Fallback** ⚠️