From 9bda601ca8be601cfd3c38636f6b46b42284486e Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Sat, 22 Feb 2020 02:42:51 +0000 Subject: [PATCH] Tweak and add to `fdisk` and `df` --- sheets/df | 15 +++++++++------ sheets/fdisk | 13 ++++++------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/sheets/df b/sheets/df index ff63533..b404be6 100644 --- a/sheets/df +++ b/sheets/df @@ -1,14 +1,17 @@ -# Printout disk free space in a human readable format +# Print free disk space in a [h]uman-readable format. df -h -# Disk free space for ext2 file systems +# Free disk space for [t]ype EXT2 file systems. df -t ext2 -# Disk free space for file systems except ext2 +# Free disk space for filesystems, e[x]cluding EXT2. df -x ext2 -# Show inode usage +# Show [i]node usage. df -i -# Show information about a distinct file system /path -df /path +# Show information about a distinct filesystem path. +df [PATH] + +# List [a]ll filesystems, + unreadable, duplicates, pseudo, and inaccessible. +df -a diff --git a/sheets/fdisk b/sheets/fdisk index de31284..0705c71 100644 --- a/sheets/fdisk +++ b/sheets/fdisk @@ -1,8 +1,7 @@ -# list partitions -fdisk -l /dev/sda - -# delete a partition -fdisk /dev/sda -Command (m for help): d -Partition number (1-9): XXX +# List partitions on BLKDEV, such as `/dev/sda`. +fdisk -l [BLKDEV] +# Delete a partition. +fdisk [BLOCK_DEVICE] +# Once in the interactive prompt: +d [NUMBER]