Biostar Beta. Not for public use.
size of a directory from symbolic link
0
Entering edit mode
16 months ago
rob.costa1234 • 160
United States

I want to calculate the overall directory size (human readable) from a symbolic link I tried to google it but could not find command that may be used in Linux. This directory is link to a backspace which achieve the files and leave the symbolic link. I understand if the directory is directly accessible then I can easily use du command. Trust me this is not my home work but I get stuck and could not find on web the exact command. Thanks

size • 685 views
ADD COMMENTlink
0
Entering edit mode

Trust me this is not my home work

Thank you for getting that out of the way :)

ADD REPLYlink
1
Entering edit mode
13 months ago
Belgium

Try this:

du -hs `readlink -f yoursymlink`

(note the backtics)

ADD COMMENTlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1