Home  >  Article  >  Operation and Maintenance  >  What is the command to clear disk space in Linux?

What is the command to clear disk space in Linux?

WBOY
WBOYforward
2023-05-25 10:07:126174browse

Linux clear disk space command:

1. First, you can check the disk information. Check out the tutorial

What is the command to clear disk space in Linux?

2. After that, you can enter the command:

cd / to enter the root directory.

du -h max-depth=1 Find the current directory and the folder that takes up the largest space

What is the command to clear disk space in Linux?

3. Then you can see that it takes up a lot of space.

What is the command to clear disk space in Linux?

4. Then enter the command: is-lhs to sort the files from large to small .

What is the command to clear disk space in Linux?

5. In the Linux system, you can delete files through rm or File Manager.

What is the command to clear disk space in Linux?

6. Finally, you can use the command : kill -9 12117 to end the process inside,

And enter the password here: df-lh

What is the command to clear disk space in Linux?

The above is the detailed content of What is the command to clear disk space in Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete