Important and useful Linux and Unix commands
Here are some commands that you may find useful while installing or troubleshooting Linux.
General Commands
How to write a boot image from your hard disk to a floppydd if=boot.img of=/dev/fd0How to copy the boot image from your hard disk to a floppy
dd if=/dev/fd0 of=floppy.imgHow to search for a file arul.jpg recursively in your Unix account
find ~/ -name "arul.jpg"How to display all the processes running on the host
ps -afHow to check the current quota and tell how much you have used
quotaHow to check disk space in a directory (say /usr)
du -s -H /usrHow to report size (in kBytes) of all enclosed directories (recursive)
du -kHow to report size (in kBytes) of all enclosed directories (non-recursive)
du -ms *How to list login IDs of users currently logged in to the system
usersHow to change the permanent information kept by the system about your logon ID
chfn
Administrator commands
access a windows (only FAT or FAT32) partition (say hda2) under linuxmount -t vfat /dev/hda2 /winallow root user and other users(where user id=500) to get rw permission for that windows partition
mount -t vfat -o uid=500 /dev/hda2 /winlist all device files corresponding to hda
fdisk -l /dev/hdatrack down symbolic links, for example, to see where xterm points to
namei /usr/X11/bin/xtermprint Linux version information
uname -rmeasure hard disk speed
hdparm -tT /dev/hdaprint hardware summary
more /proc/cpuinfocheck inode usage of all mounted partitions
df -imonitoring the system for the growth of a file
tail -f /var/log/messages
