large file is dropped directly by RM or MV, then du updates the statistics, DF does not update the statistics, or the space is not released. Until the process of opening the large file was killed.As a result, if you delete the file below/var/spool/clientmqueue periodically, the space is not released until you kill the process.After you kill the process using the following command, the system resumes.Fuser-u/var/spool/clientmqueuehttp://www.yayu.org/look.php?id=162
View the size of the
1, the Windows system under the Implementation folder file scanning
The implementation code is as follows:
#include
2, Linux system under the implementation of folder files under the scan
The implementation code is as follows:
/* $Id: SCANFOLDER.C,2012/06/10 17:53:29 sine exp$ * * #include
Run Result:
./josephus.c
./scanfolder.c
./josephus
./readme.t
Linux statistics folder space usage-basic usage of the du command, linux-du
In the command line environment, you need to know the space occupied by a folder in the linux System and the files it contains. The command du provided by linux
The Linux file system is an inverted single tree structure.The root of the file system is "/"Everything in Linux is a file.As shown in the following:The functions of each folder are as follows:Bin: Holds executable files that can be executed by all users.Boot: Store system boot, start related content. The vmlinux is the kernel file.Dev: The file that holds the ha
In linux, how does one delete folders? For more information, see this article. This article introduces the Linux folder deletion command.
Deleting a directory in linux is very simple. many people are still used to using rmdir. However, once the directory is not empty, it is deeply worried. now we can use the rm-rf com
Sharing folders between linux virtual machines and winodows-it is very troublesome for linux to install VMware tools virtual machines to obtain files from the original local system. To share folders between the original system and virtual machines, you can install vmware tools. 1. Install vmware tools (1) check whether the optical drive is mounted on the Virtual Machine. If it has been mounted, unmount it f
Counts the number of files in the current folder, including subfoldersLs-lr|grep "^-" |wc-lThe number of directories under the statistics folder, including the sub-foldersLs-lr|grep "^d" |wc-lCount the number of files in the current folderLs-l |grep "^-" |wc-lCount the number of directories under the current folderLs-l |grep "^d" |wc-lReport:Number of rows for statistical output informationFilter the long l
One, Apache installation path explainedDefault installation path/var/apache2# /etc/apache2/# |--apache2.conf# | '--ports.conf# |--mods-enabled# | |--*.load# | '--*.conf# |--conf-enabled# | '--*.conf# '--sites-enabled# '--*.conf1) Apache2.conf:apacheserver general configuration file. Includes the path to each configuration file.2) ports.conf:server The configuration file of the listening port.3) sites-enabled: directory below the configuration file that holds the default site source code p
# View the number of files in the current directory (not including files in subdirectories)ls -l| grep " ^- " WC -L# View the number of files in the current directory (including files in subdirectories) Note: R, which represents subdirectoriesls -lr| grep " ^- " WC -L# View the number of folder directories in the current directory (without directories in subdirectories), with the above manager, if you need to view subdirectories, plus Rls -l| grep " ^
Detailed Mac hard drive folders (add Linux part reference
★ Detailed Mac hard disk in each folder
Ways to show hidden files
With the "terminal", the advantage is that no third-party tools are required, the downside is that if the command is wrong, there will be side effects. The commands are as follows (note the spaces in them):
Showing: Defaults write Com.apple.finder appleshowallfiles-bool true
Hiding:
Linux folder comparison command-meld, linux comparison meld
Preface: this is not a big thing, but you also need to compare the content in the two folders to see where the difference is and find out the problem, vimdiff can only compare whether two files are the same, but cannot compare folders. However, you can write a bash script. In addition, the
1. Deepin Terminal: sudo apt-get install VirtualBox2. Download win7 ISO file3. Deepin Terminal start VirtualBox:./virtualbox4. Select the win7 ISO file5. Enter Win7 installation: Quickly format 4 partitions to start the installation6. Linux VirtualBox settings shared directory, automatic mount, Full Control7. After the system installation is complete, "Device"-"Installation Enhancements"-Prompts to download the ISO file8. Enter the Win7 system and cli
1. Df-lh
2. Du-s/usr/* | Sort-rn
This is sorted by byte
3. du-sh/usr/* | Sort-rn
This is sorted by megabytes (M)
4. Select 10 of the preceding
Du-s/usr/* | Sort-rn | Head
5. Select the following 10
Du-s/usr/* | Sort-rn | Tail
Du-h–-max-depth=0 User
du-sh–-max-depth=2 | More
This article introduces the usage of the du command parameter in Linux, and illustrates its usage further with demonstration examples.
Du command feature Description:
Linux replicates all files in the specified directory to another directoryCopy all files in the specified directory to another directoryReplication of files and directories is often used. The command for replication under Linux is CP.Suppose the replication source directory is dir1 and the target directory is dir2. How to copy all the files under Dir1 to Dir2.If the Dir2 directory does not exist, you can di
1. Df-lh
2. Du-s/usr/* | Sort-rn
This is sorted by byte
3. du-sh/usr/* | Sort-rn
This is sorted by megabytes (M)
4. Select 10 of the preceding
Du-s/usr/* | Sort-rn | Head
5. Select the following 10
Du-s/usr/* | Sort-rn | TailDu-h–-max-depth=0 Userdu-sh–-max-depth=2 | More
Summary du common commands
Du-h--max-depth=1 |grep [TG] |sort #查找上G和T的目录并排序Du-sh #统计当前目录的大小, showing in an intuitive wayDu-h--max-depth=1 |grep ' G ' |sort #查看上G目录并排序Du-sh--max-depth=1 #查看当前目录下所有一级子目录文件夹大小Du-h--max-de
command to clear the access permission. Once Nautilus is enabled, you can change the folder or file permissions, as described above ?? Even if you are not the owner of the folder or file.
Note: If the release you are using does not use sudo, change the preceding command to the following:
1. open the terminal window
2. run the su command.
3. enter your root password and press enter.
4. execute the command n
Tags: home directory exe mod table support 1.7 space value increaseLinux, Fedora, Ubuntu modify files, folder permissions the same way. A lot of people start to get into Linux when they're having headaches with Linux file permissions issues. Here we show you how to modify Linux file-
Article Title: Firefox configures the default folder path in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In Linux, the path i
My Windows PC and disk are encrypted with BitLocker, which is transparent to the user, and my Ubuntu notebook does not encrypt any folders because my computer is only private and there seems to be no need to hide any files.
But there are still a lot of friends in the Linux folder password protection needs, let's take a look at how to use the password to protect the Lin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.