Check Directory Size in Linux
You can use the following command in Linux to check the size of files in the current directory:
- List all files and directories.
ls
- You
- 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.).