CODE | FROM | DUDE
BlogProjectsAbout

Find disk usage sorted by size

Jul 11, 2023·1 min read

To find all folders and it's disk usage sorted by size, you can use the following cmd

Copy
du -ck | sort -n

To find all files in a folder and it's size,

Copy
ls -l --block-size=MB

or

Copy
ls -lh
cmdline

Related posts

  • Find process using a portJul 6, 2023
  • Ostrich algorithmOct 2, 2022
  • Insert current time in vs code using snippetSep 15, 2022

Share this article

Next ›Find process using a port