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`