Hard Disk Allocation with df and du

Hard disk allocation under Linux can be reviewed using the following commands.

df

disk free displays the free (meaning available) storage space on the hard disk.

Display free storage space for the entire file system

 df -h

Display free storage space for the local file system

 df -hl 

du

disk usage displays the storage space in use (meaning not available) on the hard disk.

Display all storage space in use for the system

 du -sh /

Display the storage space for the Media folder, but ignore all BMP files.

 du --exclude="*.bmp*" -sh media/ 

Display the storage space for the current directory.

 du -sh ./

Ontvang de laatste server tips direct in je mailbox!

Kennisbank onderwerpen

Komt je er niet uit? Neem contact op met onze techneuten via 020-8950045

Vers van de pers

VIEW ALL -

Loop je vast? Wij helpen je graag!

Neem contact met ons op. Wij beantwoorden je vragen en zorgen ervoor dat je servers snel weer draaien.
TOP