Regular expressionsis a pattern written by a class of characters, many of which do not represent their literal meaning, but rather express control or wildcard functions; a regular expression uses a single string to describe and match a series of
When we write a script, we often intercept some data from the command output, such as: I want to know how many hard disks are on the host650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/3C/B7/wKioL1PCeFLxxHMSAABsWZrIneo226.jpg "title="
The following error occurred while executing SVN add * under Linux:Svn:valid UTF-8 Data(hex:4b)followed by invalid UTF-8 sequence(HEX:FC 63 68 65)This error occurs because the names of files in the SVN repository are not utf-8 encoded, which is
Before I introduced Apache Abtest to do stress tests (http://www.cnblogs.com/super-d2/p/3831155.html)But how to install Apache under Linux, in general Linux under the installation of Apache need source code installation;First, to Apache 's official
First go to the Network-scripts folder #:cd/etc/sysconfig/network-scriptsThen use VI to edit Ifcfg-eth0 #:vi ifcfg-eth0 #仅eth0网卡一个DEVICE = eth0 #设备名称BOOTPROTO = static #获取IP的方式或依赖的协议, where auto is changed to static broadcast=192.16
Linux+apache+opensslImplementing HTTPS authentication apache2.0 HTTPSInstall SSL first, then compile and install Apache, then configure the certificate1. Download Apache and OpenSSLUrl:http://www.apache.orghttp://www.openssl.org2. Unzip#tar ZXVF
Shell string comparison, judging whether it is a numeric two-dollar comparison operator, compare variables or compare numbers. Note the difference between a number and a string. Integer comparison -eq equals, such as:if [ "$a" -eq "$b"
1) White list formrequirements: Only allow 192.168.0.11 and 192.168.0.10 login All other forbiddenimplementation:1. Vim/etc/hosts.allow//Add the following:sshd:192.168.0.11, 192.168.0.102. Vim/etc/hosts.deny//Add the following:Sshd:all2) blacklist
When doing kernel-driven development, you can use the files under/proc to get the appropriate information for debugging.Most of the files under/proc are read-only, but for the completeness of the example, a write method is provided.Method One: Use
SCP is the abbreviation for secure copy, and SCP is a secure remote file Copy command under the Linux system based on SSH login. Use of the 1.SCP command: SCP copies files between different hosts on the network, transmits data using SSH security
1. View common commands for file contentsCat: The file content is displayed by the first line TAC: Starting from the last line, with cat opposite nl: File contents and Line numbers output more: One page one page shows less: Like more, you can page
Linuxsettings for file and directory permissionsModify File PermissionsIf you want to change the permissions of a file or directory, you can use the chmod command to change the permissions of a file or directory in two ways: mnemonic and octal. •
This conversation "syslog".Last time I talked about "log" (LGO). This time the syslog, see log (logs) to understand what is going on. Syslog is the tool that gets the system log.Many Uinix systems use this program, which takes on the important task
Install and update libraries using external devices (optical drives) and linux external devices1. Mount the optical drive (the directory does not exist, create)Mount-t auto/dev/cdrom/mnt/cdrom2. Modify the index file to read the local
Linux executes multiple commands consecutively and linux Multiple commandsIf each command is separated by ";", the next command will be executed no matter whether the command at the front is successfully executed or not.Here, the echo in the second
Modify the maximum number of file handles in linux.
We all know that during high concurrency Optimization on linux servers, you often need to optimize linux parameters in advance. Modifying the maximum number of file handles in linux is one of the
In linux, you can view the CPU cache information.View CPU cache Information in linux
1. Check the CPU Cache level in Linux.
dmesg | grep cache
The instance result is as follows:
Ii. View Cache association methods
View the corresponding folder
Vim cursor positioning, vimVim cursor Positioning
* Locate the specified row n:Enter "nG ".Or enter "ngg ".Or enter ": n"Here, n is the row number of the specified row. Note that sometimes G = gg.* Jump to the top of the screen:Enter "H ".This is
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