I want a list of the folders from the current directory or one that I specify with their size.
I have tried with du but I only get the size of the directories I specify (du . ./f1), and ls doesn't show the size of the folders.
How do I do this without any scripting ?
Best Answer
If you want to show all the directories in the current directory:
To show them starting from another directory:
If you want to make sure directories with names starting with a dot are included do
shopt -s dotglob
first.