Linux du command

If you wish to track the Disk Usage of your Linux Dedicated Server or VPS – the Linux du command is quite useful and very fast. In this article, we will show you the most important usage of the Linux du command. It is extremely handy if you have a lot of people uploading content to your machine or if you have daily backups scheduled.

Using Linux du command to view how full is your system

This will display the size of all files down the current working directory

du

The above one will show output in Kilobytes, we are more used to seeing Mbs and Gbs, for this we’ll use the -h option

du -h

Using Linux du command to view all files’ Disk Usage

du -ah

A similar way to go is to use

du -sh ./*

Using Linux du command to view files in the n nested directories below

du -ah --max-depth=1
  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux top command

If you wish to monitor the performance of your VPS or Dedicated server and track processes, RAM...

Linux ping command

If you wish to test your connection to a server from your Linux system you can use the Linux ping...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...