Louisville, KY
Greg is a retired neurologist in Louisville, Kentucky, with a long-standing interest in computers and programming, beginning with Fortran IV in the 1960s. When Linux and open source software came along, it kindled a commitment to learning more, and eventually contributing. He is a member of the Scribus Team.
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.