My list of important Linux commands

After working with Linux operating system for quite sometime now, I have compiled a list of some of the most useful commands to help perform the day-to-day administrative tasks.

Text/Data:

  • cat
  • wc
  • head
  • tail
  • echo

Text Editors:

  • nano
  • vi

Filesystem:

  • ls
  • df
  • cat /proc/diskstats
  • cat /proc/sys/fs/file-max

Performance:

  • top (1 for all CPUs)
  • mpstat -P ALL 2 1
  • vmstat 5
  • iostat -dx 5

Monitoring:

  • top
  • mpstat -P ALL 2 1
  • watch

General Info:

  • whoami
  • hostname
  • pwd
  • ls
  • env
  • lsof
  • lsmod
  • date

Linux Administration:

  • cat /proc/version
  • cat /proc/cpuinfo
  • cat /proc/mounts
  • cat /proc/filesystems
  • cat /proc/uptime
  • cat /proc/mounts

Advanced:

  • cat /proc/diskstats
  • cat /proc/devices
  • cat /proc/mdstat (software RAID)
  • cat /proc/sys/fs/file-max
  • cat /proc/partitions
  • cat /proc/meminfo
  • cat /proc/vmstat
  • cat /proc/modules

Did this tutorial help a little? How about buy me a cup of coffee?

Buy me a coffee at ko-fi.com

Please feel free to use the comments form below if you have any questions or need more explanation on anything. I recommend thoroughy testing on a production-like test system first before moving to production.