2. Getting Information

The commands presented in this chapter provide valuable information on the state and configuration of your system.

Contents of this chapter:

  • apropos (find a command)
  • df (report free disk space)
  • dmesg (print kernel messages)
  • du (show disk space usage of files)
  • fdisk (list and edit disk partitions)
  • file (determine file type)
  • free (display free working memory)
  • ls (list directory contents)
  • lscpu, lspci,lsusb (list hardware)
  • man (view reference manuals)
  • uname (get kernel info)
  • stat (display file status)
  • top (watch system resource usage)
  • tree (show directory tree)
  • which (locate a command)