Misc Tips

Sat 25 June 2016 by admin

Tips from different categories:

  • how to get mount point from current working directory
# while true; do findmnt . && break; cd ../;  done
  • get all exit codes from pipeline
# true | false |true
# echo ${PIPESTATUS[*]}
1 0 1
  • get list of packages to upgrade
# apt-show-versions -u
  • get reverse package dependencies (installed)
# apt-cache rdepends --installed <pkg>