16. Filesystem

  • files

  • directories

  • sockets

  • symlinks

  • hardlinks

  • journaling

16.1. Disk

  • /dev/sda

  • /dev/sdb

Table 16.1. Disk

Command

Type

Description

df -h

df

report file system disk space usage

sync

Synchronize cached writes to persistent storage

sync

commit filesystem caches to disk

16.2. Partitioning

  • /dev/sda1

  • /dev/sda2

  • parted

  • gparted

  • druid

Table 16.2. Partition

Command

Type

Description

delpart

tell the kernel to forget about a partition

fdisk

manipulate disk partition table

grub-mkconfig

generate a GRUB configuration file

grub

kpartx

Create device maps from partition tables.

parted

a partition manipulation program

partx

tell the kernel about the presence and numbering of on-disk partitions

resizepart

tell the kernel about the new size of a partition

update-grub

stub for grub-mkconfig

16.3. File Systems

  • xfs

  • zfs

  • apfs

  • ntfs

  • fat32

  • btrfs

  • ext3

  • ext4

  • vfat

Table 16.3. Filesystem

Command

Type

Description

fsck

check and repair a Linux filesystem

journalctl

Query the systemd journal

mkfs

build a Linux filesystem

mkswap

set up a Linux swap area

mount

mount filesystem

mount

mount a filesystem

swapoff

start/stop swapping to file/device

swapoff

enable/disable devices and files for paging and swapping

swapon

start/stop swapping to file/device

swapon

enable/disable devices and files for paging and swapping

16.4. Integrity

  • fdisk

16.5. Mounting

  • mount

  • /etc/fstab

  • /etc/mtab