Check Folder Size in Unix: du Command Guide
In Unix systems, the du command can be used to check the size of a folder. Here are some common options for the du command:
- View the size of the current directory.
du
- Check the size of a specified directory:
du 目录路径
- Check the size of the directory and display it in a human-readable format.
du -h
- Check the size of each file in the directory and display a summary.
du -s
- Display the size of each file in the directory in a human-readable format.
du -sh
You can easily view the size of folders in a Unix system by using these du command options.