Check the size of a folder in gigabytes (GB) using the du command

Περισσότερα
2 Ημέρες 7 Ώρες πριν #319 από infogate
Command to Check Folder Size in GB
du -sh /path/to/folder

-s: Summarizes the total size of the folder.
-h: Displays the size in a human-readable format (e.g., KB, MB, GB).

Force Display in GB
If you specifically want the output in gigabytes, use:
du -sh --block-size=G /path/to/folder

List All Subfolders with Sizes
To view the sizes of all subfolders within a directory in human-readable format:
du -h /path/to/folder

To sort the output by size for easier analysis:
du -h /path/to/folder | sort -h

Check the size of /var/log in GB:
du -sh --block-size=G /var/log

If the folder is large and contains many files, the command may take some time to complete.


The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.033 δευτερόλεπτα
Powered by Kunena Φόρουμ