Linux cheat sheet

Linux find largest file in directory recursively using find

  1. Open the terminal application.
  2. Login as root user using the sudo -i command.
  3. Type du -a /dir/ | sort -n -r | head -n 20.

Folder size in linux

sudo du -sh /varCode language: JavaScript (javascript)

Leave a Reply

Your email address will not be published. Required fields are marked *