-
mount
- used to insert a filesystem on a device such as a hard drive, floppy or
cd-rom into the main filesystem tree.
- can normally only be used by the superuser
- the most common format of mount is: mount -t fstype device directory
- /etc/fstab is the configuration file for the mount command
- /etc/mtab normally contains a list of the filesystems that are currently
mounted
- eg: mount -t vfat /dev/fd0 /floppy
- eg: mount -t ext2 /dev/ram2 /mnt
-
umount - unmount; can unmount either the directory or the device
- eg: umount /floppy OR umount /dev/fd0
-
mkfs - creates a logical filesystem on a device
- eg: mkfs -t ext2 /dev/fd0
-
fsck - check a filesystem (and optionally repair it)
- eg: fsck -t ext2 /dev/fd0
-
sync - write any data in the filesystem cache out to disk
-
du - display the amount of disk space used:
- eg: du /etc
-
df - show the amount of free space on filesystems that are mounted