Ravindra Bagale · Cyber Securityसर्व coursesया course चे lessonsशोधाEnglish

Cyber Security · मराठी आवृत्ती

Disk आणि storage commands

रवींद्र बागले यांच्या course वर आधारित · सहज मराठीत explanation

Disk space, folder size, block device आणि mounted filesystem या वेगळ्या गोष्टी आहेत. खालील commands वापरून एकेक भाग पाहू.

df -h            # disk space per mounted filesystem (human readable)
df -Th           # include filesystem type (xfs, ext4)
sudo du -sh /var/log                    # total size of a folder
sudo du -h --max-depth=1 /var | sort -h # which sub-folder is big?
lsblk            # block devices (disks & partitions) as a tree
lsblk -f         # with filesystem type, UUID and mount point
sudo blkid       # UUIDs of all filesystems
findmnt /        # what is mounted at /
sudo mount /dev/nvme1n1 /data
sudo umount /data
cat /etc/fstab   # permanent mounts (read at boot)
free -h          # memory

Practice

Free disk space, /var/log चा size, /var मधले तीन मोठे folders आणि lsblk -f output पाहा. या read-only exercise साठी mount बदलण्याची गरज नाही.