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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I configure cygwin to show file size in bytes when I do 'ls -l'?

I get size in bytes under ubuntu, but not in cygwin.

how can i fix it?

share|improve this question

Try this :

ls -s --block-size=1k

and

ls -s --block-size=8k

Resource : http://cygwin.com/ml/cygwin/2006-01/msg01189.html

share|improve this answer
1  
And to make it work all the time, add in ~/.bashrc alias ls='ls -s --blocksize=1k' and then it will always work (after log out/back in that is) – Justin Nov 28 '12 at 0:37

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.