R means to recursively grep all files (including subdirectories) under the directory.For example, grep-r main src will search all files in the SRC directory for the inclusion of the main string.Therefore, the-R in the Grep-r "main" *.c is
Let's start with the scenario, a service starts the agent on each server, and the user executes the task on the specified machine and returns the results to the Web page. The execution of tasks by the user-defined script, usually also is the shell
The firewall-cmd command in CentOS 7, centosfirewall-cmd
In CentOS 7
Ftp service is currently available# Firewall-cmd -- add-service = ftpPermanently open ftp service# Firewall-cmd -- add-service = ftp -- permanentPermanently close# Firewall-cmd --
Recently, the linux commands grep, awk, cut, uniq, wc are used to calculate the number of players who use commands every day. comgzip-c-dnohup.out. 'date + % Y % m % d '*. gz | grep/web/api/logic/logicDispatcher | awk & amp; #39; {FS & quot; &
Recently learned linux commands grep, awk, cut, uniq, wc. The actual application example shows the number of players who use commands every day: www.2cto.com gzip-c-d nohup. out. 'date + % Y % m % d '*. gz | grep/web/api/logic/logicDispatcher | awk '
0: Basics of Regular Expressions
^ First line ID
$ End or end of an article
. Represents any character
? Indicates the occurrence of a forward character.
* Indicates the occurrence of 0 or multiple prefix characters.
[1-9] indicates a string of 1 to
In CentOS 7Temporarily Open FTP Service# Firewall-cmd--add-service=ftpPermanently open FTP Service# Firewall-cmd--add-service=ftp--permanentPermanently closed# Firewall-cmd--remove-service=ftp--permanentSuccessLet the setting take effect# systemctl
CentOS 7 firewall-cmd Command
In CentOS 7
Open FTP Service temporarily# Firewall-cmd--add-service=ftp
Permanent Open FTP Service# Firewall-cmd--add-service=ftp--permanent
Permanently closed# Firewall-cmd--remove-service=ftp--permanentSuccess
Text/SuperHei _ [At] _ ph4nt0m.org 2006-03-08
[A. grep below (http://www.interlog.com /~ Tcharron/grep.html) does not support the-r parameter. You can use the following format:Grep-in "/(include/| require/)" C:/test/*. php C:/test/admin/*. phpYou
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.