Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a magento store running on a shared hosting server. We are in process of migrating the site and need to know the size of particular folders like media etc.

This will help us getting the size of backup file in reasonable proportion. Right now the back file is almost 6 GB :-( So its just not possible to download and upload the same.

If I know the size of individual folders, I can leave some of the bigger ones for the time being.

Please let me know how can I know this. Our server has cPanel.

share|improve this question
    
HAve you tried with ll?? –  poz2k4444 Oct 10 '12 at 13:01
    
whats ll ??.... I have no idea about this. –  Pankaj Upadhyay Oct 10 '12 at 13:19
    
when you are at folder you want and in terminal you type ll and hit enter it will display a lot of info, like permissions, type of file, and size, but I don't know if it is what you want –  poz2k4444 Oct 10 '12 at 15:57
    
@PankajUpadhyay: ll is just a frequent alias to ls -l. It doesn't show directory sizes, however. –  grawity Oct 10 '12 at 18:16

1 Answer 1

up vote 3 down vote accepted

Run du -hs /path/to/store/* to calculate sizes of all subfolders directly under /path/to/store.

share|improve this answer
    
Where should I run this command. –  Pankaj Upadhyay Oct 11 '12 at 6:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.