Display only current directory contents using `du`


/ Published in: Bash
Save to your folder(s)

It makes linux `du` command to show only children of current directory.
You have to replace `TAB` with actual tab character. In terminal you can get it by pressing ``.


Copy this code and paste it in your HTML
  1. du -h | grep "^[0-9A-Z. ]*[TAB]*\./[.a-zA-Z0-9_ -]*$"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.