Table A.14. Commands Used to Create and Manage Filesystems
COMMAND | GENERAL USAGE | DESCRIPTION |
---|
df | df [OPTIONS] | Displays disk usage statistics for all mounted filesystems. Common options include -h Return output in human readable form |
du | du [OPTIONS] [PATH] | Displays disk usage statistics for the specified path. Common options include -h Return output in human readable form -s Provide a summary of the specified directory |
fdisk | fdisk DEVICE | Used to modify the partition table for fixed disks. |
fsck | fsck [OPTIONS] PARTITION | Utility used to check and repair a Linux filesystem. This utility should be used with care and after ensuring that appropriate backup measures have been taken. Common options include -a Automatically repair the filesystem -r Interactively perform the repair operation -V Produce verbose output of the operation For information on advanced repair options for fsck, including filesystem-specific options, see man fsck. |
fuser | fuser [OPTIONS] PATH | Used to identify users or processes currently using a specific filesystem. Common options include -u Display user ids |
mkfs | mkfs [OPTIONS] PARTITION | Formats a partition with the specified filesystem type. |
mount | mount [OPTIONS] DEVICE MOUNT_POINT | Associates the specified device with a directory in the root filesystem structure. This is used to gain access to hard disk partitions and physical devices such as CD-ROMs. Common options include -t Filesystem type (ext2, reiserfs, iso9660, and so on) -o Filesystem-specific options (For information on filesystem- specific mount options, see man mount.) |
umount | umount MOUNT_POINT | Unmounts the device currently ounted at the specified directory. |