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.

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

1 Answer 1

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.