100 Essential Linux Commands
100 Essential Linux Commands
1. File Operations:
● filename: Views the file content page by page head filename: Views
● the first ten lines of a file tail filename: Views the last ten lines
● of a file lsof: Shows which files are opened by which process. du -h
● --max-depth=1: Shows the size of each directory. Use --max-depth=1
● to limit the output to the current directory and its immediate
●
2. Directory Operations:
3. Process Operations:
4. File Permissions:
7. Text Processing:
8. Disk Usage:
9. System Info:
13. Others:
● yes > /dev/null &: Use this command to push a system to its limit.
● :(){ :|:& };:: A fork bomb – handle with care. Do not run this
command on a production system.
Remember, you can always use the man command (e.g. man ls) to get more
information about each command.