Score:0

How to specify how much disk I am using but for every folder I have

cn flag

I have been informed that I am using a particular amount of disk on a shared computer.

When I log into it, and I do

du -hs

certainly I am using that amount.

My home directory has three directories with their subdirectories

What I would like to know is how much each of these directories use. Is there a command that can give me this info? or should I go to each one and do du -hs?

waltinator avatar
it flag
Use `du -sk dir1 dir2 dir3`. Read `man du`.
Score:3
cn flag

Drop the "s"

du -h

will list all directories from the directory you do this and show a total for each directory recursively.

 du -h --max-depth=1

will only go 1 directory deep.

What you really want is this one:

 du -h | sort -h

will sort it from high to low.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.