If you find that there is not enough free space in the /home directory on the Linux system, you can use the du and df commands to find large files and delete them to make room. So how do you use the du and df commands to clear large files?
specific methods:
Step 1. du
du --max-depth = 1 -Hm
--max-depth Maximum Depth
-H Easy to understand (humanable)
-m in MB
The result is as follows,
[root@gdc1000 gftp]# du - -max-depth=1 -Hm
2333 . /mirantis_virtualbox
1 ./.mozilla
1 ./.gnome2
1 ./.ssh
1 ./rpmbuild
2457 ./kb
1 ./root
15 ./thinprovider
177 ./pcap
13 ./webui_third_party
8 ./vm
1 ./.local
1 ./docker
51 ./wwwbackup
1 ./win7isomaker
77559 ./tool
2573 ./env
1 ./.pulse
Don't find mmirantis_virtualbox, it takes up more than 2G. Just delete it.
The discovery /tool directory has 77G content, go to /tool directory
Repeat step 1.
Step 2 df
So check the system
[root@gdc1000 windows]# df
Filesystem 1K-blocks Used Available Use% Mounted on< Br>
/dev/mapper/VolGroup-lv_root
257899908 68816416 175978852 29% /
tmpfs 1911300 296 1911004 1% /dev/shm
/dev/Sda1 487652 58191 403861 13% /boot
/dev/mapper/VolGroup-lv_home
206293688 162281004 33526928 83% /home
/srv/loopback-device/swiftloopback< Br>
1900368 3076 1792436 1% /srv/node/swiftloopback
[root@gdc1000 windows]#
The above is the specific use of du and df commands to clear large files under Linux system. The method, using this method to clean up the Linux system can free up a few G or even tens of G space.
Quagga is a routing software that can turn Linux devices into routers and implement
gcc and ifor compiler are more commonly used by developers, before the small series also introduced
In Linux, many people dont understand the meaning of the variable parameter $ in th
We all know that yum is a package manager in the CentOS system for downloading and
Difference between Linux exit command and _exit command
CentOS batch compression image size operation example
The role of the Linux system pwd command
Linux statistical data software WhatPulse User Guide
How to remove the ^M character of the Linux file
CentOS 6.4 uses script to disable the touchpad.
How to install LAMP in yum in CentOS6.5 system
How Linux uses the command line to clean up the disk to increase the space
Win8 add virtual network card method graphic tutorial
How to quickly copy the full address of an open file in Win8
Win10 comes with Xbox how to record game video
Remote Desktop prompts no permission to resolve when logging in to Windows Server 2003
Win8.1 close uac dialog box does not close uac function method
In the Win10 right-click menu, add the Windows Defender scanning option. How to introduce the
Win10 official version can not use Xiaomi's portable wifi what should I do?
Win 7 pre-emptive download Memory usage is lower than Vista
The small command will help you to exit the Win8/Win8.1 test mode