Cheatsheet: Difference between revisions

Line 957:
=== HDD ===
 
du -h ==> space by dir including all subdir in dir tree
du
du -sh /etc/ ==> total disk space used by dir and suppress subdir
du -ah /etc/ ==> see all files, not just directories:
 
 
df -h
Line 964 ⟶ 967:
df -T -h ==> List Filesystem type as well
df -t ext4 ==> Only see ext4 file system
df -a ==> List all filesystems that have a size of zero blocks as well
df -i ==> Display File System Inodes
 
lsblk ==> Lists out all the storage blocks, which includes disk partitions and optical drives