👩💻 Join our community of thousands of amazing developers!
I’ve come up with a lot of ways to see what’s taking up space in my directories from Terminal over the years. I’ve finally built one that covers all the little niggles I’ve had in the past. Let’s start with the other ways you can do this. du Since we’re talking about disk usage, the obvious choice is du, the “disk usage” command. To see the filesize of every file in the directory you can run du -sh *. The -h switch tells it to output human readable sizes, so it looks like: 4.0Ktest.rb 4.0Ktoken....