du Flashcards

1
Q

du

A

Summarize disk usage of the set of FILEs, recursively for directories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

du

  • 0
  • a
  • B
  • b
  • c
  • d
A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

du

-h

–inodes

  • L
  • l
  • m
  • P
  • S
A

-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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

du

–si

  • s
  • t
  • X

–exclude=PATTERN

-x

A

–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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

du

–time

–time=WORD

–time-style=STYLE

A

–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’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly