size of a directory from symbolic link
1
0
Entering edit mode
7.5 years ago
rob.costa1234 ▴ 310

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

linux • 1.2k views
ADD COMMENT
0
Entering edit mode

Trust me this is not my home work

Thank you for getting that out of the way :)

ADD REPLY
1
Entering edit mode
7.5 years ago

Try this:

du -hs `readlink -f yoursymlink`

(note the backtics)

ADD COMMENT

Login before adding your answer.

Traffic: 2845 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6