{"id":4249,"date":"2021-02-13T16:54:10","date_gmt":"2021-02-13T08:54:10","guid":{"rendered":"https:\/\/www.ookangzheng.com\/?p=4249"},"modified":"2021-02-14T00:10:11","modified_gmt":"2021-02-13T16:10:11","slug":"linux-alternative-cmd-written-in-rust-go","status":"publish","type":"post","link":"https:\/\/www.ookangzheng.com\/linux-alternative-cmd-written-in-rust-go\/","title":{"rendered":"Linux alternative cmd written in Rust \/ Go"},"content":{"rendered":"\n
du<\/em><\/code><\/h2>\n\n\n\n1. Native ones<\/h3>\n\n\n\n
du<\/code> – Summarize disk usage of the set of FILEs, recursively for directories.<\/p>\n\n\n\nMost popular commands:<\/strong>
du -sh \/path<\/code> – show total summary for a defined path<\/p>\n\n\n\ndu -h -d 1 \/path<\/code> – show directory sizes with custom depth (-d option)<\/p>\n\n\n\ndu -h -d 1 \/path | sort -hr<\/code> – same as previous, but with sort from largest to lowest<\/p>\n\n\n\n