Jack Stupple
  • Home
  • GitHub
  • BlueSky
  • Twitch
Sign in Subscribe
19 Jan 2023 Bash

Check size of a directory on linux

I needed to check the size of a directory on linux, make sure that my colleague has sync'd up fully a file. I managed to find this: https://unix.stackexchange.com/questions/185764/how-do-i-get-the-size-of-a-directory-on-the-command-line

du --human-readable --summarize <dirname>

du -sh <dirname>

Published by:

Jack Stupple

You might also like...

19
Aug

Identifying when a file was deleted in Git

1 min read
06
Dec

Reinstalling windows

1 min read
26
Oct

Heredoc and snips

1 min read
07
Sep

Clean old google-cloud-sdk versions

1 min read
29
Apr

My little pterodactyl / minecraft / docker problems sheet

1 min read

Member discussion

Jack Stupple © 2025
  • About
  • Data & privacy
Powered by Ghost