When using the terminal, is there a command that allows you to see the size of each individual file in a particular directory?

link|improve this question

20% accept rate
feedback

2 Answers

On Linux/Unix, use

  • ls -lk (for size in kilobyte) or
  • ls -lh (for easier readable approximate file sizes, like 12M or 2G).

ls -l will show size in blocks, which might not be that useful.

link|improve this answer
feedback

Use ls -l to list all files with their details on OS X and Linux, or dir on Windows.

link|improve this answer
man ls would get you far but just to add to Darth's answer, adding -h will help you get a more human-readable output! – Garrett Dec 30 '11 at 7:21
feedback

Your Answer

 
or
required, but never shown

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