All along, we used simple expressions to check whether the conditions were matched. What if you want to use more than one expression to check for a particular condition?
In this article, we'll look at how you can filter text and strings by
Edit configuration file:/etc/exportsTo add a file authorization list:/home/www.111cn.net/data/127.0.0.1 (rw,no_root_squash,sync,anonuid=1525,anongid=1525)
To start a service-side service:NFS ServicesService NFS Restart"If the service command is not
More and more machines are being monitored over time, and the amount of data being stored will be more and more, and the response rate will be slower when the data is at a certain time; so we need to clean up some historical data.
#!/bin/bash
grep lookup contains specific characters in the specified directory
Instance
Search all files in the/var/www/html directory, with files containing phpinfo characters, and show travel numbers
Grep-rn phpinfo/var/www/html/*
Note:-R is recursive
The company moved, several server IP also changed, so the server OTA application of a lot of files related to IP replaced by the current IP, this time you can use the SED command. To bulk find replacements in a directory:
Sed is an online editor
have been using this because sometimes the U.S. VPS wget command to download domestic files when the speed is too slow, so the use of Axel is still a good choice.1.CentOS installation of Axel
32-bit CentOS execute the following command
Wget-c http:
The following error occurred while testing the Mydumper compression feature (-C) yesterday:
The code is as follows
Copy Code
[Root@liufofu backup]# mydumper-h localhost-u root-p tiger-c-O./liufofu/-B
The TCP wrappers:transmission Control Protocol (TCP) wrappers provides enhanced security for services generated by inetd. TCP Wrappers is a way to replace the use of/etc/inetd.sec. TCP Wrappers provides protection against spoofing of host names and
First understand the Chkconfig command.
Command format
Chkconfig--list [service name]Chkconfig--level [0123456] Service name On|off which parameter meaning:
–list: To view the list of system services, the service name is optional.–level: Set the
When a new Linux server is configured, if you need to configure iptables, you are typically configured with the following command:
First, install and start the firewall
[Root@linux ~]#/etc/init.d/iptables start
When we use Iptables to add rules,
File permissions:First step: Create a user at the terminalAdd User Useradd User nameSet Password passwd user nameCreate a A1,A2 of two users with the two commands above.Step Two: Create a file using the administrator account in the root
Linux system Boot Process detailedstart the first step --load the BIOSWhen you turn on the computer, the computer loads the BIOS information first, and the BIOS information is so important that the computer must find it at the very beginning. This
Linux kernel Management: A basic understanding of the kernelThe operating system we are talking about is primarily the kernelThe above features do not involve the implementation of text editing, implementation of word processing, there is no service
first, look at CPU is supported KVMGREP-E-o ' VMX|SVM '/proc/cpuinforesults show VMX Express Support Second, The package required to install the KVM1.[[email protected] ~] #yum install KVM KMOD-KVM qemu kvm-qemu-img virt-viewerVirt-manager
Jdk-8u111-linux-x64.tar.gz This is a compressed package of JDK in Linux system.Delete command:RM-FR Directory Name "This command is mandatory to delete the meaning of"To modify a character encoding set:Export LANG=ZH_CN. UTF-8To view the character
Just started to learn to use Linux, the VI command is not very familiar with the online transfer of an article.The VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here
Environment: CENTOS7Download Navicat:navicat112_mariadb_cs_x64.tar.gzClick on the " ./start_navicat" Installation interface will appear garbledWorkaround: Open a Start_navicat file, export lang= "en_US. UTF-8 "changed to export lang=" ZH_CN. UTF-8 ".
VM ~ VM Linux does not connect to the Internet.
Using the Bridge Connection method, centos6.4 is configured with a static IP address, which can ping the gateway, but appears when you ping the Internet
"Network is unreachable"
For example, ping
1. Number of times Baidu spider crawlsCat access. log | grep Baiduspider | wcThe leftmost value shows the number of crawlers.2. Detailed records of Baidu Spider (Ctrl C can be terminated)Cat access. log | grep BaiduspiderYou can also use the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service