From 309c097d02520b3c325c80fa01510695c8c52c0b Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Sun, 7 Jan 2024 07:43:56 -0300 Subject: [PATCH] df: split POSIX, FreeBSD, NetBSD, OpenBSD, osx and GNU (#11870) Co-authored-by: K.B.Dharun Krishna --- pages/common/df.md | 18 +++++++----------- pages/freebsd/df.md | 32 ++++++++++++++++++++++++++++++++ pages/linux/df.md | 24 ++++++++++++++++++++++++ pages/netbsd/df.md | 32 ++++++++++++++++++++++++++++++++ pages/openbsd/df.md | 28 ++++++++++++++++++++++++++++ pages/osx/df.md | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 155 insertions(+), 11 deletions(-) create mode 100644 pages/freebsd/df.md create mode 100644 pages/linux/df.md create mode 100644 pages/netbsd/df.md create mode 100644 pages/openbsd/df.md create mode 100644 pages/osx/df.md diff --git a/pages/common/df.md b/pages/common/df.md index 607f5fdc4..3fe03e994 100644 --- a/pages/common/df.md +++ b/pages/common/df.md @@ -1,24 +1,20 @@ # df -> Gives an overview of the filesystem disk space usage. -> More information: . +> Display an overview of the filesystem disk space usage. +> More information: . -- Display all filesystems and their disk usage: +- Display all filesystems and their disk usage using 512-byte units: `df` -- Display all filesystems and their disk usage in human-readable form: - -`df -h` - - Display the filesystem and its disk usage containing the given file or directory: `df {{path/to/file_or_directory}}` -- Display statistics on the number of free inodes: +- Use 1024-byte units when writing space figures: -`df -i` +`df -k` -- Display filesystems but exclude the specified types: +- Display information in a portable way: -`df -x {{squashfs}} -x {{tmpfs}}` +`df -P` diff --git a/pages/freebsd/df.md b/pages/freebsd/df.md new file mode 100644 index 000000000..6e2bf603f --- /dev/null +++ b/pages/freebsd/df.md @@ -0,0 +1,32 @@ +# df + +> Display an overview of the filesystem disk space usage. +> More information: . + +- Display all filesystems and their disk usage using 512-byte units: + +`df` + +- Use [h]uman-readable units (based on powers of 1024) and display a grand total: + +`df -h -c` + +- Use [H]uman-readable units (based on powers of 1000): + +`df -{{-si|H}}` + +- Display the filesystem and its disk usage containing the given file or directory: + +`df {{path/to/file_or_directory}}` + +- Include statistics on the number of free and used [i]nodes including the filesystem [T]ypes: + +`df -iT` + +- Use 1024-byte units when writing space figures: + +`df -k` + +- Display information in a [P]ortable way: + +`df -P` diff --git a/pages/linux/df.md b/pages/linux/df.md new file mode 100644 index 000000000..7df56df4a --- /dev/null +++ b/pages/linux/df.md @@ -0,0 +1,24 @@ +# df + +> Display an overview of the filesystem disk space usage. +> More information: . + +- Display all filesystems and their disk usage: + +`df` + +- Display all filesystems and their disk usage in human-readable form: + +`df -h` + +- Display the filesystem and its disk usage containing the given file or directory: + +`df {{path/to/file_or_directory}}` + +- Include statistics on the number of free inodes: + +`df -i` + +- Display filesystems but exclude the specified types: + +`df -x {{squashfs}} -x {{tmpfs}}` diff --git a/pages/netbsd/df.md b/pages/netbsd/df.md new file mode 100644 index 000000000..8fd17e75e --- /dev/null +++ b/pages/netbsd/df.md @@ -0,0 +1,32 @@ +# df + +> Display an overview of the filesystem disk space usage. +> More information: . + +- Display all filesystems and their disk usage using 512-byte units: + +`df` + +- Use [h]uman-readable units (based on powers of 1024): + +`df -h` + +- Display all the fields of the structure(s) returned by `statvfs`: + +`df -G` + +- Display the filesystem and its disk usage containing the given file or directory: + +`df {{path/to/file_or_directory}}` + +- Include statistics on the number of free and used [i]nodes: + +`df -i` + +- Use 1024-byte units when writing space figures: + +`df -k` + +- Display information in a [P]ortable way: + +`df -P` diff --git a/pages/openbsd/df.md b/pages/openbsd/df.md new file mode 100644 index 000000000..7f0bf270c --- /dev/null +++ b/pages/openbsd/df.md @@ -0,0 +1,28 @@ +# df + +> Display an overview of the filesystem disk space usage. +> More information: . + +- Display all filesystems and their disk usage using 512-byte units: + +`df` + +- Display all filesystems and their disk usage in human-readable form (based on powers of 1024): + +`df -h` + +- Display the filesystem and its disk usage containing the given file or directory: + +`df {{path/to/file_or_directory}}` + +- Include statistics on the number of free and used [i]nodes: + +`df -i` + +- Use 1024-byte units when writing space figures: + +`df -k` + +- Display information in a portable way: + +`df -P` diff --git a/pages/osx/df.md b/pages/osx/df.md new file mode 100644 index 000000000..9f52b22db --- /dev/null +++ b/pages/osx/df.md @@ -0,0 +1,32 @@ +# df + +> Display an overview of the filesystem disk space usage. +> More information: . + +- Display all filesystems and their disk usage using 512-byte units: + +`df` + +- Use [h]uman-readable units (based on powers of 1024) and display a grand total: + +`df -h -c` + +- Use [H]uman-readable units (based on powers of 1000): + +`df -{{-si|H}}` + +- Display the filesystem and its disk usage containing the given file or directory: + +`df {{path/to/file_or_directory}}` + +- Include statistics on the number of free and used [i]nodes including the filesystem t[Y]pes: + +`df -iY` + +- Use 1024-byte units when writing space figures: + +`df -k` + +- Display information in a [P]ortable way: + +`df -P`