Due to the unreasonable design when installing the system, some partitions are too small, and network communication failures cause log files to grow rapidly, etc. Other reasons may be expressed as disk space. Full, causing the disk to be unreadable, the application cannot be executed, etc. Here are a few tricks for you (using /homespace as an example):
1, regularly scan important file systems, and compare and analyze those files frequently read and write
#ls –lR /home ;files.txt
#diff filesold.txt files.txt
Predicting the growth of space by analysis, while considering not reading and writing frequently Files are compressed to reduce the footprint.
2, view the memory system full of inodes consumption
#df – i /home
If there are a large number of inodes available, indicating that large files take up space, otherwise It is possible that a large number of small files take up space.
3, find out the directory with large space
View the space occupied by /home
#du –hs /home
View the space occupied by /home under 1000m
#du |
Awk '$1;2000'
4. Find out the files that take up a lot of space
#find /home –size +2000k
5. Find out which files have been recently modified or created.
Touch a file with the time you want as follows:
# touch -t 08190800 test
#find /home -newer Test -print
6. Delete system logs, etc.
Delete files such as core, mbox, etc.
#find /-name core|
Xargs rm –rf
Delete log
#rm -rf /var/log/*
7, link to partition
in space Partition, link to no space partition
#ln -s /home /usr/home
8, find out the process that consumes a lot of space
Find the corresponding process according to different applications. Analyze the reasons.
9, check and repair the file system
#fsck –y /home
10, restart the machine
has The above ten tricks should solve most of the problems, but the key is to plan the partition when installing. In addition, when the disk is full, you can't worry, be careful, carefully analyze the cause, and then carefully deal with it. Need to pay attention to the above ten strokes do not need to be executed sequentially, and some may take a step to seal the throat, and some may need several strokes to use, the removal operation must be careful. If it still doesn't work, only take the "hard" approach of adding hard drives and reinstalling the system.
A.Linux files can be divided into four types: ordinary files, directory files, link files, and devi
Matthew Garrett, Core Developer from Red Hat, publishes a detailed article on Fedora 18. It will int
Preparation before erection: To set up a DNS server, you must install a software program that provi
The Go language (ie Golang) is a programming language originally developed by Google. It has severa
Linux Timed Task System Cron Getting Started
Save memory space Optimize Linux background service program
Linux command must learn 60 installation and login commands
Linux environment programming - editor basic operations
MongoDB installation basic tutorial under LInux
Linux VPS system security settings basic tutorial
Teaching: Help you easily get the software installation of Linux system
Detailed TCP programming functions and steps
The use of regular expressions and grep commands under Linux
I took out the Windows 2003 IIS6 installer
Windows 2000/NT/XP 16-bit application permissions bypass the vulnerability
Win10/wp developers can apply for free subscription to Xamarin tools. End of August 31
The reason why Windows XP system runs slower
A simple way to see if a photo has been taken by PS
IE9 browser skills: IE9 browser common settings skills
Win8.1 Update 0x80070002 and 0x80070003 error solution
How to solve the problem that Windows 7 opens pictures slower