A “List” of Linux ls Commands Overview
File and Directory Listings
Command | Description |
---|---|
ls |
Lists files and directories in the current working directory. |
lsattr |
Lists file attributes on a Linux file system. |
Hardware and Device Listings
Command | Description |
---|---|
lspci |
Lists PCI buses and devices (e.g., graphics cards, NICs). |
lsusb |
Lists USB buses and connected USB devices. |
lsblk |
Lists block devices like drives and partitions. |
lscpu |
Displays CPU architecture information. |
lsmem |
Lists memory block sizes and memory ranges. |
lsmod |
Lists loaded kernel modules. |
lsscsi |
Lists SCSI devices and hosts. |
lspcmcia |
Lists PCMCIA cards. |
lsraid |
Lists RAID arrays and their status (if supported). |
Networking
Command | Description |
---|---|
lsof |
Lists open files and the processes that opened them. |
lsof -i |
Lists open network connections and listening ports. |
Processes and System Introspection
Command | Description |
---|---|
lsns |
Lists Linux namespaces. |
lslocks |
Lists system locks held by running processes. |
Comments
Commenting is closed for this article.