Shell

Quick notes

System information

  • neofetch, system info
  • du -sh <file>/<directory>, check the size of file or directory
  • df -h, display free disk space
    • -h, 1k = 1024 byte
    • -H, 1k = 1000 byte
  • uname -s, print kernel name
    • Linux
    • Darwin
  • uname -r, linux release number
  • last -n 50, check last logged in users
  • lastb -n 50,
  • pstree -p, process tree
  • w, show who is logged on and what they are doing