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:

  1. View the size of the current directory.
du
  1. Check the size of a specified directory:
du 目录路径
  1. Check the size of the directory and display it in a human-readable format.
du -h
  1. Check the size of each file in the directory and display a summary.
du -s
  1. 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.

bannerAds