Filesystem

  • files

  • directories

  • sockets

  • symlinks

  • hardlinks

  • journaling

Disk

  • /dev/sda

  • /dev/sdb

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

Partitioning

  • /dev/sda1

  • /dev/sda2

  • parted

  • gparted

  • druid

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

File Systems

  • xfs

  • zfs

  • apfs

  • ntfs

  • fat32

  • btrfs

  • ext3

  • ext4

  • vfat

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

Integrity

  • fdisk

Mounting

  • mount

  • /etc/fstab

  • /etc/mtab