Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Several commands use --block-size 1K as the default and I find myself counting numbers. Is there a way to automatically and permanently change the block-size of commands like du,ls,df to greater values?

share|improve this question

1 Answer 1

All those commands you mentioned (du, df, ls) have a -h option to make the output sizes "human-readable", using K, M, G and T as appropriate.

If you want to avoid adding the 'h' everytime, simply define bash aliases that include it, eg duh, lsh, etc.

share|improve this answer

Your Answer


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.