Home >Operation and Maintenance >Linux Operation and Maintenance >What is the command to clear disk space in Linux?
1. First, you can check the disk information. Check out the tutorial
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
3. Then you can see that it takes up a lot of space.
4. Then enter the command: is-lhs to sort the files from large to small .
5. In the Linux system, you can delete files through rm or File Manager.
6. Finally, you can use the command : kill -9 12117 to end the process inside,
And enter the password here: df-lh
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!