Find the directory taking up the most space on your Linux system

To find the directories taking up the most space on your Linux system, you can use the following command:
du -h --max-depth=1 / 

This command will list the space occupied by each directory under the root directory in descending order. Among them, the `-h` option means to display the size in a human-readable format, and the `--max-depth=1` option means to only display one level of directories.
You can check this list to determine which directories take up the most space, and then Decide if you need to delete some files or move them elsewhere.

Guess you like

Origin blog.csdn.net/taoshihan/article/details/131408843