Check Directory Size in Linux

You can use the following command in Linux to check the size of files in the current directory:

  1. List all files and directories.
ls
  1. You
  2. I just woke up.
du -sh *

This will display the total size of each file (folder) in the current directory, formatted in an easy-to-read way (e.g. GB, MB, etc.).

bannerAds