-T file system types >
Display only information for the specified file system type
-L
Show only the local file system
-H
Display information in a more readable way
-H
Same as -h option, but is calculated as a unit of bytes instead of a byte
Example: displays the usage of disk space. [Email protected]~]# DFfile System 1k- block already used % mount point available /d
How to bulk delete empty files (Files of size equal to 0) under Linux
The code is as follows
Copy Code
Find. -name "*"-type f-size 0c | Xargs-n 1 rm-f
You can also delete a file of the specified size, as long as you modify the corresponding-size parameter, for example:
The code is as follows
Copy Code
Find. -name "*"-type f-size 1024c | Xargs-n 1 rm-f
is to delete files of
Linux disk and File system Basics (i)
MBR master boot record, total 512 bytesWhere 446 bytes represents the bootload system boot initiator
64 bytes represents a disk partition, and 16 bytes can identify a primary partition, and all disks can have up to 4 primary partitionsSo most disk partitions are 3 primary partitions and one extended partition, and the extended partition can be divided into n logical partitionsThe 2 bytes are mostly valid for standard MBR2.DF command: Show file
2nd. This is because the default partition leaves a small amount of space for system administrators to use. Even if the normal user space is full, the administrator can still log in and leave the workspace needed to resolve the problem. The use% column in the list represents the percentage of normal user space usage, even if the number reaches 100%, and the partition still leaves room for the system administrator to use. Finally, the mounted on column represents the installation point for the f
0c | Xargs-n 1 rm-f
This also allows you to delete a file of a specified size, as long as you modify the corresponding-size parameter, for example:
The code is as follows
Find. -name "*"-type f-size 1024c | Xargs-n 1 rm-f
is to delete a 1k size file. (but be careful not to use the-size 1k, this gets the Occupy space 1k, not the file size
. This can be done by adding an SSI off in the location block;. 5. Turn off the server tag. If turned on (by default) all error pages will display the server version and information. To resolve this issue, add the Server_tokens off declaration to the Nginx configuration file. 6. Set the custom cache in the configuration file to limit the possibility of buffer overflow attacks.
Client_body_buffer_size 1K;
Client_header_buffer_size
, this feature is in most of the original document "natural existence." For example, search on Google, 2-word phrases and 22-word phrases, the number of results found in a huge difference, 200 words and 220 words, the number of results found in the difference is not so big. The frequency is roughly one-way gradually change, so after dividing the range, the frequency of the nodes in the range is close, the change speed from big to small, so the division of the range should be small to large.
"Ma
filter, only rely on U32 match this module
#tc qdisc Add Dev vif8.0 ingress
#tc filter Add dev vif8.0 parent ffff:protocol IP prio u32 match IP src 0.0.0.0/0 Police rate 100bps burst 1k drop CLA SSID 16
Ingress's classid are always FFFF, so each time you add a filter, its parent is FFFF:
Protocol can be IP or ARP, if the following byte for U32 match, here protocol in fact nothing to use
Prio represents priority, this value must be set
Since protocol
With the development of Nginx, more and more sites use nginx, so nginx optimization becomes more and more important, today we look at Nginx gzip compression is how to compress it?
Gzip (Gnu-zip) is a compression technique. After gzip compressed page size can be changed to the original 30% or even smaller, so that users browse the page when the speed will be much more. Gzip compressed page need both browser and server support, is actually server-side compression, upload browser after the brows
a file is large, it may occupy multiple blocks, if a file is small, at least one, and the remaining space wasted;
(7) The same documents for the Inode, each hard linked file;
(8) A file is created to occupy at least one inode and one block;
(9) If the file is small, it must occupy at least one block and the remaining space can not be used;
(a) Inode size and total view:
Dumpe2fs/dev/sda2|egrep-i "Block size| Inode Size "
Dumpe2fs/dev/sda3|egrep-i "Block count| Inode Count "
(11) View the total
time.
Client_header_buffer_size 4k;
Client requests the size of the head buffer, this can be based on your system paging size to set, the general one requested head size will not exceed 1k, but because the general system paging is greater than 1k, so this is set to paging size. The paging size can be obtained using the command getconf pagesize.
Open_file_cache max=102400 inactive=20s;
This will specify c
number of blocks in column 2nd. This is because the default partition leaves a small amount of space for system administrators to use. Even if the normal user space is full, the administrator can still log in and leave the workspace needed to resolve the problem. The use% column in the list represents the percentage of normal user space usage, even if the number reaches 100%, and the partition still leaves room for the system administrator to use. Finally, the mounted on column represents the i
in the location block of the configuration file.
4. Disable SSI (server-side references) on the server. This can be done by adding an SSI off in the location block;.
5. Turn off the server tag. If turned on (by default) all error pages will display the server version and information. To resolve this issue, add the Server_tokens off declaration to the Nginx configuration file.
6. Set the custom cache in the configuration file to limit the possibility of buffer overflow attacks.
Copy C
corresponding-size parameter, for example:
The code is as follows
Copy Code
Find. -name "*"-type f-size 1024c | Xargs-n 1 rm-f
is to delete a 1k size file. (but be careful not to use the-size 1k, this gets the Occupy space 1k, not the file size 1k).
If you delete the folder or t
.
Worker_connections 204800;
Maximum number of connections for no worker process. According to the hardware adjustment, and the previous work process together to use, as large as possible, but do not run the CPU to 100% on the line. The maximum number of connections allowed per process, theoretically each Nginx server has the largest number of connections. Worker_processes*worker_connections
Keepalive_timeout 60;
KeepAlive timeout time.
Client_header_buffer_size
other configurations:Client_header_buffer_size syntax: Client_header_buffer_size size Default value: 1k Using fields: HTTP, server This directive specifies the HTTP header buffer size requested by the client in most cases the size of a header request will not be greater than 1k but if there is a larger cookie from the WAP client it may be greater than 1k,nginx w
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.