I am working on a Debian server where I have only console access without sudo. The main folder called applications includes subfolders with all the projects I have.
However, when I create a new project through my admin panel, the folder name is a nonsense string and you can rename it by creating a symlink to a new folder.
So, of example, the applications folder is like that:
applications/ abuwryjbrb evharjqgxj MyCustomProjectName1 MyCustomProjectName2
I want to check how much space each of the applications use. Since I don't have a lot of experience in Unix, I googled and I found that I can do it with
du -sh *.
However, the output is like that:
91M abuwryjbrb 201M evharjqgxj 0 MyCustomProjectName1 0 MyCustomProjectName2
As a result, it is too time consuming for me to check one by one the names and see which folder is which.
Is there any way to get an output with the disk usage for the symlinks instead?
du -sh -L * instead, I don't get duplicated folders for both original and symlinked, but I get a mixed output like this:
91M abuwryjbrb 201M MyCustomProjectName1
Where some of the folders have the original name and some the symlink name