Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeMidnight
    htop 

 vmstat -s # Provides a detailed breakdown of memory usage and other related metrics since the last system boot. 

...

Keeping track of disk usage and health is crucial for preventing data loss and ensuring efficient storage management.

df -h # Shows disk space usage in "human-readable" format

...

Code Block
languagebash
themeMidnight
 du -sh /path/to/directory

1.1G    /path/to/directory

fdisk -l # List all partitions

Code Block
languagebash
themeMidnight
 fdisk -l
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Disk model: QEMU HARDDISK    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: XXXXXX-XXX-XXX-XXXX-XXXXXXXXXX

Device     Start      End  Sectors Size Type
/dev/sda1   2048     4095     2048   1M BIOS boot
/dev/sda2   4096 41940607 41936512  20G Linux filesystem

...