Greg Pittman

Authored Comments

One of the problems I always have with this sort of use of bash is remembering the complicated syntax. I get around this by creating alias commands, or by making a shell script, which is just a text file containing the list of commands such as you show.

Your second example doesn't show the right command. It should have been:

du -ah ~/Downloads

I never use du without the -h option. Otherwise, the results are too cryptic to understand.