Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

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.

share|improve this answer

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

share|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

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.