Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.