Adding 30 advanced but useful Linux commands to this popular cheat sheet :
- xargs – Build and execute commands from standard input (eg: pipe find results into other commands).
- watch – Run a command repeatedly and display its changing output over time.
- alias – Create a shortcut for a longer command.
- unalias – Remove a previously defined alias.
- whereis – Locate the binary, source and manual page for a command.
- strace – Trace system calls and signals used by a process (good for debugging).
- jq – Process JSON data on the command line.
- tcpdump – Capture and display network packets for troubleshooting network issues.
- iftop – Monitor real-time bandwidth usage per interface/host.
- rsync – Sync files/directories locally or over network (efficient for backups).
- umask – Set default file creation permissions for new files/directories.
- chroot – Change the root directory for a process (useful for rescue & isolation).
- trap – Define shell script actions when signals are received (for cleanup, etc).
- tee – Read from standard input and write to standard output and to files.
- disown – Remove a job from shell’s job-control so it won’t receive SIGHUP after logout.
- env – Run a command in a modified environment or display environment variables.
- export – Set environment variables for current session or children processes.
- unset – Remove environment variables from current shell.
- sysctl – Modify kernel parameters at runtime.
- xfs_growfs / resize2fs / lvextend – Expand filesystems or LVM volumes online (depending on file system type).
- lsof +D <dir> – List open files under a directory tree (helps find what’s blocking unmount, etc).
- ncdu – Interactive disk usage explorer (useful on head-less servers).
- vgdisplay / pvdisplay / lvdisplay – Display LVM volume group / physical volume / logical volume details.
- ss -tunlp – Show listening sockets with process names (modern replacement/enhancement for netstat).
- nmcli – Command-line tool to manage network settings via NetworkManager.
- hdparm – Show or set SATA/IDE drive parameters (for hardware/IO tuning).
- smartctl – Monitor SMART status of drives (for early detection of disk failure).
- pgrep: Pattern match to find process IDs
- apropos – Search the manual page names & descriptions for keywords.
- ipcrm – Remove System V interprocess communication objects (shared memory, message queues, semaphores).