💾 Archived View for darknesscode.xyz › notes › disk-usage-du-command.gmi captured on 2023-07-22 at 16:21:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Get the size of a specific directory in Linux

To get the actual size of a directory you need to run the *du* command (disk usage)

Examples

For a directory owner by user

du -sh Downloads

The output will be like

24G Downloads/

If the directory is owner by root

sudo du -sh /var

The output will be like

85G /var

For more option check man du

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode