19 Useful Linux Listing Commands 99.9% of you might not know about (but should know):
1. lsmem
The lsmem command displays the available memory ranges as well as their online status. The memory blocks listed correspond to the sysfs memory block representation.
The lsmem command displays the available memory ranges as well as their online status. The memory blocks listed correspond to the sysfs memory block representation.
lsfd is not a drop-in replacement for lsof; their command line interface and output formats differ.
5. lsof
The command lsof stands for List Of Open Files. This command displays a list of files that have been opened. Essentially, it provides information to determine which files are opened by which process.
The command lsof stands for List Of Open Files. This command displays a list of files that have been opened. Essentially, it provides information to determine which files are opened by which process.
6. lscpu
lscpu command gathers CPU architecture information from sysfs, /proc/cpuinfo, and any architecture-specific libraries that are applicable (e.g. librtas on Powerpc).
The command output can be optimized for parsing or human readability.
lscpu command gathers CPU architecture information from sysfs, /proc/cpuinfo, and any architecture-specific libraries that are applicable (e.g. librtas on Powerpc).
The command output can be optimized for parsing or human readability.
8. lspci
A utility for displaying information about PCI buses in the system and devices connected to them.
A utility for displaying information about PCI buses in the system and devices connected to them.
It is worth noting that lslocks also list OFD (Open File Description) locks, which are not associated with any process (PID is -1). OFD locks are linked to the open file description from which they were obtained.
19. lsinitramfs
lsinitramfs command lists the content of given initramfs images. It allows one to quickly check the content of one (or multiple) specified initramfs files.
lsinitramfs command lists the content of given initramfs images. It allows one to quickly check the content of one (or multiple) specified initramfs files.
Incase you don't know:
initramfs is a root filesystem embedded in the kernel and loaded early in the boot process. It is the heir to initrd. It provides early userspace, which can perform tasks that the kernel cannot easily perform during the boot process.
initramfs is a root filesystem embedded in the kernel and loaded early in the boot process. It is the heir to initrd. It provides early userspace, which can perform tasks that the kernel cannot easily perform during the boot process.
That's it!
Thank you for making it this far. Hopefully, you will find this thread useful.
Additions are welcomed.
Thank you for making it this far. Hopefully, you will find this thread useful.
Additions are welcomed.
If you found this thread valuable:
1. Toss us a follow for more daily threads on Linux, sysadmin and DevOps →
@linuxopsys
2. Like and RT the first tweet so other Linux folks can find it too.
1. Toss us a follow for more daily threads on Linux, sysadmin and DevOps →
@linuxopsys
2. Like and RT the first tweet so other Linux folks can find it too.
Loading suggestions...