I am facing trouble understanding the meaning of the Linux command du -sk * |sort -rn|head. I understand that du is used to display the disk usage but I'm facing trouble understanding the rest of the command. Can somebody please breakdown what's exactly happening here? Also can some good resources be suggested for studying complex linux commands in detail?
Meaning of the statement - du -sk * |sort -rn|head
4.6k views Asked by Dawson Smith At
1
Good resources to study Unix commands are the manual pages.
man du:man sort:man head:The command shows the 10 largest directories or files.
Step by step: