Skip to content

Instantly share code, notes, and snippets.

Created Jun 27, 2021
What would you like to do?
Linux Commands


Pseudo file systems

The command ‘uname‘ displays the information about the system.


uname [OPTION]

Options and Examples

  1. -a option: It prints all the system information in the following order: Kernel name, network node hostname, kernel release date, kernel version, machine hardware name, hardware platform, operating system . Syntax:

$ uname -a 2. -s option: It prints the kernel name.


$ uname -s

  1. -r option: It prints the kernel release date.


$ uname -r

  1. -m option: It prints the machine hardware name.


$ uname -m

Kernel Modules

The modules are loaded on demand by udev (device manager). You can also manually load a module into the kernel using the modprobe command, or automatically at boot time.

  • lsmod and modinfo: List and show details of kernel modules.
  • modprobe: Dynamically load and unload kernel modules.


/dev contains information on all connected hardware of a system.

  • lshw, lscpu, lspci, lsusb, dmidecode: hardware information, including CPU, BIOS, RAID, graphics, devices, etc.
  • lsblk: list block devices: a tree view of your disks and disk partitions

Linux Boot System

  • dmesg: boot and system error messages
  • Use dmesg whenever something's acting really funny (it could be hardware or driver issues).
  • journalctl -k: systemd utility to view the kernel ring buffer within the systemd journal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment