du Flashcards
du
Summarize disk usage of the set of FILEs, recursively for directories.
du
- 0
- a
- B
- b
- c
- d
- 0, –null, End each output with NUL.
- a, –all, Write counts for all files.
- B, –block-size=SIZE, Scale sizes by SIZE
- b, –bytes, Equivalent to –apparent-size –block-size=1
- c, –total, Produce grand total.
- d, –max-depth=N, Print the total for a directory (or file, with –all) only if it is N or fewer levels below the command line argument; –max-depth=0 is the same as –summarize.
du
-h
–inodes
- L
- l
- m
- P
- S
-h, –human-readable
–inodes, List inode usage instead of block.
- L, –dereference, Dereference all symbolic links.
- l, –count-links, Count sizes many times if hard linked.
- m, Like –block-size=1M
- P, –no dereference, Don’t follow symbolic links (default)
- S, –separate-dirs, For directories do not include size of subdirectories.
du
–si
- s
- t
- X
–exclude=PATTERN
-x
–si, Like -h, but use powers of 1000 not 1024.
- s, –summarize, Display only a total for each argument.
- t, –threshold=SIZE, Exclude entries smaller than SIZE if positive, or entries greater than SIZE if negative.
- X, –exclude-from=FILE, Exclude files that match any pattern in FILE.
–exclude=PATTERN, Exclude files that match PATTERN.
-x, –one-file-system, Skip directories on different file systems.
du
–time
–time=WORD
–time-style=STYLE
–time, Show time of the last modification of any file in the directory, or any of its subdirectories.
–time=WORD, Show time as Word instead of modification time: atime, access, use, ctime, status
–time-style=STYLE, Show times using STYLE, which can be: full-iso, long-iso, iso, or +FORMAT; FORMAT is interpreted like ‘date’.