104.2 Maintain Integrity of Filesystems Flashcards
Filesystem Integrity
responsible for estimating disk space usage on files and or directories
du
Filesystem Integrity: du
write counts for all files and not just directories
du -a
du –all
Filesystem Integrity: du
produce a grand total
du -c
du –total
Filesystem Integrity: du
print sizes in readable format (K/M/G/TB)
du -h
du –human-readable
Filesystem Integrity: du
display only a summary for any argument
du -s
du –summarize
Filesystem Integrity: du
can be used with file
globbing
Filesystem Integrity
reports on a file system disk space usage
df
Filesystem Integrity: df
include all filesystems including dummy filesystems
df -a
df –all
Filesystem Integrity: df
show stats for a file instead of mount
df –direct
Filesystem Integrity: df
print a grand total
df –total
Filesystem Integrity: df
print sizes for in readable format (K/M/G/TB)
df -h
df –human-readable
Filesystem Integrity: df
include only local file systems
df -l
df –local
Filesystem Integrity: df
limit listing to the indicated type
df -t
df –type
Filesystem Integrity
filesystem debugger can show a vast amount of info about indicated partition
debugfs
Filesystem Integrity: debugfs
will show a lot of info about any selected file or folder on the indicated drive
degubfs /dev/sdb1
Filesystem Integrity: debugfs - interactive
show available commands
?
Filesystem Integrity: debugfs - interactive
change the indicated path and must exist on disk debugfs is running on
cd [path]
Filesystem Integrity: debugfs - interactive
display filesystem features
features
Filesystem Integrity: debugfs - interactive
display journal contents if available
logdump
Filesystem Integrity: debugfs - interactive
shows contents of current directory
ls