Commands
Pseudo file systems
The command ‘uname‘ displays the information about the system.
Syntax:
uname [OPTION]
Options and Examples
- -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.
Syntax:
$ uname -s
- -r option: It prints the kernel release date.
Syntax:
$ uname -r
- -m option: It prints the machine hardware name.
Syntax:
$ 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
andmodinfo
: List and show details of kernel modules.modprobe
: Dynamically load and unload kernel modules.
Hardware
/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.