Find & fd

Use fd over find.

# Find a file, with regex
fd "\.exs$"
 
# Find a file, with global patterns
fd -g "*.exs"
 
# Find a file starting with -
fd -- -why
 
# Quick options
-H hidden
-I no ignore
-i ignore case
-d <number> max depth
-t <type>
   d directory
   f file
   l symlink
   x executable
-e extension

Files, File sizes & File systems

df -h . See file systems, and their current usage du -sh . To see files and their file sizes in human readable format. du -h /var/lib --max-depth=1 List all folders in /var/lib and give their size in readable form du -h /var/lib --max-depth=1 | sort -rh Sort in reverse and human readable numbers du -h /var/lib --max-depth=1 | sort -rh | head -10 Show top 10 results (sorted, descending) tree -sh --du Print the tree, with human readable file sizes and directory sizes tree -h --du -L 1 Print the tree, human readable, one level deep tree -h --du -L 1 --sort size Print tree, human readable sizes, one level, sorted