unix Flashcards
uname -r
Shows the kernel version (release)
uname -m
Displays the system architecture
uname -a
Displays all information that uname can output
lscpu
Shows details about the CPU
lsmod
Shows the running kernel modules
modinfo
Displays detailed information about a kernel module
modinfo -a
Shows the author of a kernel module
modinfo -d
Shows a brief description of the kernel module
modinfo -l
Shows the license under which the kernel module is located
modprobe
Loads a kernel module into the kernel
modprobe -r
Unloads a kernel module from the kernel
lspci
Lists all PCI devices
lspci -v
Lists all PCI devices in a more detailed view
lspci -vv / lspci -vvv
Lists all PCI devices in an even more detailed view
lspci -k
Lists all PCI devices
lsusb
Lists all USB devices
lsusb -v
Lists all USB devices in a more detailed view
lsusb -s 002
Lists only the USB devices on bus 002
lsusb -d
Only shows the USB devices of the respective manufacturer
lsusb -t
Displays the USB devices in a tree view
pstree
Shows running processes in a tree view
pstree -p
Shows running processes including the process ID in a tree view
dmesg
Reads the kernel ring buffer (kernel boot logs)
journalctl
Displays all systemd logs