Cheatsheet: Difference between revisions

Content added Content deleted
Line 957: Line 957:
=== HDD ===
=== 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
df -h
Line 964: Line 967:
df -T -h ==> List Filesystem type as well
df -T -h ==> List Filesystem type as well
df -t ext4 ==> Only see ext4 file system
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
lsblk ==> Lists out all the storage blocks, which includes disk partitions and optical drives