All commands
du
Topic: Disks and space
Program: du
Shows how much space files and directories take.
Package: core-inodes
Usage
du [OPTION]... [FILE]...
Description
Show how much disk space each FILE takes, for directories with everything below them.
Without FILE, the current directory. Sizes are KiB, rounded up.
Options in the simulator
-
-s, --summarize only one total for each FILE -
-h, --human-readable sizes like 4.0K, 176K, 1.2M -
-a, --all also show files, not only directories -
-c, --total add a line with the grand total -
-b, --bytes sizes in bytes, like --apparent-size -
-k count in KiB (the default) -
-m count in MiB -
-d, --max-depth=N show directories only down to N levels below FILE -
--apparent-size count the size of files instead of the space they take -
-L, --dereference follow every symbolic link -
--help show this help and exit
17 more options of the real program, not in the simulator yet
-
-0, --null not in the simulator yet On a real system each line ends with a zero byte instead of a newline, for other programs.
-
-B, --block-size needs a value not in the simulator yet On a real system it sets the unit of the sizes freely.
-
-D, --dereference-args not in the simulator yet On a real system du then follows only symlinks given as FILE, not the ones below them.
-
--files0-from needs a value not in the simulator yet On a real system du reads the names from a file, separated by zero bytes.
-
-H not in the simulator yet On a real system du then follows only symlinks given as FILE, not the ones below them.
-
--inodes not in the simulator yet On a real system du then counts inodes instead of space.
-
-l, --count-links not in the simulator yet On a real system du counts a file with several hard links once for every name.
-
-P, --no-dereference not in the simulator yet On a real system du then follows no symlink, as it does without -L anyway.
-
-S, --separate-dirs not in the simulator yet On a real system a directory then counts only what lies directly in it, without subdirectories.
-
--si not in the simulator yet On a real system du works like -h, but with 1000 instead of 1024.
-
-t, --threshold needs a value not in the simulator yet On a real system du only shows entries above (or for a negative number below) a size.
-
--time value optional not in the simulator yet On a real system du then shows the latest change time below each line.
-
--time-style needs a value not in the simulator yet On a real system du then shows the latest change time below each line.
-
-X, --exclude-from needs a value not in the simulator yet On a real system du leaves out names that match a pattern.
-
--exclude needs a value not in the simulator yet On a real system du leaves out names that match a pattern.
-
-x, --one-file-system not in the simulator yet On a real system du stays on one file system and skips others mounted below.
-
--version not in the simulator yet On a real system it prints the version of the program.
Where you learn it
Lessons
All commands