1, let Tail keep reading the latest content
Tail -n 10 -f /etc/httpd/logs/access.log
2, check the fifth line of the file to the 10th line (inclusive)
Sed -n '5, 10p' /etc/httpd/logs/access.log
3, make the system have no response to PING
Echo 1> / proc / sys / net / ipv4 / icmp_echo_ignore_all
4, make TCP SYN Cookie to protect
Echo 1> / Proc / Sys / Net / IPv4 / TCP_Syncookies
5, find command to use parameters
Format: Find [PATH ...] [Expression] Find / -Name Access_log 2> / dev / null does not display error message Find / -Amin n ## lookup system last N minutes access file Find / -AME N ## Finding the last N * 24 hours access to the system Find / -cmin n ## Find the file Find / -ctime n ## lookup system in the system Find / -ctime n ## lookup system file Find / -empty ## Find blank files in the system, or blank file directory, or a folder in the directory, there is no subdirectory, Find / -False ## lookup system, always wrong file Find / -fstype Type ## lookup system Survity in the specified file system file, for example: ext2 .find / -gid n ## lookup system file number group ID N file Find / -Group GName ## lookup system belongs to the GNAM file group, and specify group And ID file Find / -Mmin N # Find files Find / -mtime N # in the last N minute in the system Find files Find / -Nouser in the system last 24 * N hours. Find in the system File Find / -size NC # in the system is found in the system long-term N-byte file Find / -Size NC # Find file Find / -dayStart ## test system in the system long than n bytes Today, the files within 24 hours, usage similar to -Aminfind / -Depth ## Use the depth level lookup process, you specify the file content in a specified directory to find the file content Find / -FOLLOW ## follow the wildcard link mode; Ignore the wildcard link method query Find / -help ## display command summary Find / -MaxDepth levels ## Find Find / -Mount ## in a certain level, Find Find / -Mount ## is not in the file system directory, usage similar -XDEV .find / -noleaf ## For non-unux file system, MS-DOS system, CD-ROM file system to optimize Find / -Version ## Print version number - EXEC Command; ## Find and execute command -fprint FILE ## Print file full file name - FPRINT0 FILE ## Print file full file name includes empty file -fprintf File Format ## Print file format -ok command; ## to perform actions to the user command, execute -Printf Format ## Print file format -LS ## Print file format -LS ## Print file format, depending on the user's Y confirmation input. Several parameters Can be connected with -AND, -OR, and a parameter is reversed!