Hits : 1342

Linux Useful Commands


Contents

Generic


Command Example Description
man -f man -f vim  What is ?
man -k man -k editor search the manual page names and descriptions
apropos apropos editor search the manual page names and descriptions
uname uname -a print system information
du  du -cxk estimate file space usage
discover discover -d hardware detection utility
lspci lspci -vvv list all PCI devices
tune2fs tune2fs -l /dev/sda1 adjust tunable filesystem parameters on ext2/ext3 filesystems
debugfs debugfs -w /dev/sda1 -R 'features ext_attr' ext2/ext3 file system debugger
e2fsck e2fsck -y -f /dev/sda1 check a Linux ext2/ext3 file system
badblocks badblocks -v /dev/sda1 search a device for bad blocks
dumpe2fs dumpe2fs /dev/sda1 dump ext2/ext3 filesystem information
e2image e2image -r /dev/sda1 sda1_file_info Save critical ext2/ext3 filesystem metadata to a file
hostid hostid print the numeric identifier for the current host
ethtool ethtool -i eth0 Display or change ethernet card settings
mii-tool mii-tool -v eth0 view, manipulate media-independent interface status
mii-diag mii-diag -v eth0 Network adapter control and monitoring
pkill pkill firefox look up or signal processes based on name and other attributes
pgrep [pgrep firefox look up or signal processes based on name and other attributes
pidof pidof firefox-bin find the process ID of a running program
pgrep pgrep squid find ALL the process ID of a running program
sysctl sysctl -a configure kernel parameters at runtime
ipcs ipcs -s provide information on ipc facilities
ipcrm ipcrm -s 11111 remove a message queue, semaphore set or shared memory id 
pmap pmap -x 6981 pmap – report memory map of a process
tload tload -d 1 tload – graphic representation of system load average
slabtop slabtop
display kernel slab cache information in real time
dmidecode dmidecode DMI table decoder
arp  arp -v manipulate the system ARP cach
findsmb findsmb list info about machines that respond to SMB name queries on a subnet

top