The basic usage of grep can be referred to in this [link] document, written in detail, here is the main description of the use of regular expressions.
GREP supports the basic regular Expressions (BRE) and extended regular Expressions (ERE)
Linux Log view:
1. Last
-a the host name or IP address from which to log in to the system, displayed on the last line.-d Specifies the record file. Specifies the record file. Converts an IP address into a host name.-F specify record
Output of colors under Linux terminal
You can also create colorful fonts and patterns at the command line, just add some color codes, such as
Echo-e "\033[41;36m Red Bottom Green character \033[0m"
where 41 of the position represents
The properties of a Linux file or directory include: The file or directory's node, kind, permission mode, number of links, the user and user group to which it belongs, the time recently accessed or modified, and so on. The details are as
Create a new file under Linux, or use fopen new, what is the encoding of the file?Linux system default language code is as follows# cat/etc/sysconfig/i18nLang= "en_US. UTF-8 "Sysfont= "Latarcyrheb-sun16"run the locale command to get the details of
Reprint: http://blog.sina.com.cn/s/blog_4829b9400101piil.html1. Prepare the installation package: Libevent-2.0.21-stable.tar.gz and memcached-1.4.25.tar.gz2. Specific installation steps1. Since memcached relies on libevent, it is necessary to
Nmon Monitoring Linux PerformanceOne, download Nmon compressed package,: http://download.csdn.net/download/fhqsse220/6699865Second, installation method:1, nmon_linux14i.tar.gz decompression and put into Linux, such as the root directory test under
System callsThe function implementation body in kernel space, provided to the application to use, is a system call.Work flow1. Switch from user space to kernel space via soft interrupt (Swi). Entry-common. The entry (VECTOR_SWI) in S is used to
chmod
Function: Change the permissions of the file.Syntax: chmod [-r] XYZ file or directory (numeric type changes file permissions)XYZ: is the permission attribute of the number type just mentioned, which is the sum of the numeric values of the
One, group account fileThe group account file consists of two parts:/etc/group,/etc/gshadow, which holds the group account name, GID number, group members and other information, the latter is used to save the group account of the encrypted string,
Today do a question, to judge whether a string is a substring of another string, so check the implementation of STRSTR.The code is as follows:1 Char*STRSTR (Const Char*S1,Const Char*S2)2 {3 Const Char*p=S1;4 Constsize_t len=strlen (S2);5
Use Dstat for Linux Comprehensive Performance Diagnosis
Performance testing, evaluation, and optimization have always been the focus of system management and maintenance personnel. When we analyze a production application, obtaining basic data such
Linux system time Configuration
This article is based on network information. Linux system time configuration can be roughly divided into "Manual" setting and ntp-based configuration.
Manually set system time
1. Description
In Linux, there are two
Ubuntu software package installation fault solution (in-depth analysis of specialized problems), ubuntu in-depth analysis
Preface: Apt-get is correct when installing most packages, but sometimes the following error occurs when you use the apt-get
Centos7 time synchronization server
It's a bit difficult today. Because of inconsistent server time, many log logs are missing during data synchronization.
So. Let's talk about the time server first.
Start:
Method 1: simple, efficient, and easy
O & M personnel must be familiar with the latest O & M toolsOperating System: Centos ※ubuntu, Redhat ※suse, FreebsdWebsite Service: nginx ※, apache ※, tomcat ※, lighttpd, php ※, resin ※Database: MySQL ※, Mysql-proxy, MariaDB, PostgreSQLDB middleware:
How to install and configure HaProxy
Introduction
HAProxy provides high availability, Server Load balancer, and TCP and HTTP application-based proxy. It supports Virtual Hosts and is a free, fast, and reliable solution. HAProxy is especially
Brief Mosquitto tutorial
1. obtain and install
Mosquitto provides Windows, Linux, and qnx versions. The installation file can be obtained from http://mosquitto.org/files/binary. In Windows, the installation process is very simple. You can even
Go Development Environment ConfigurationGo (golang) is an open-source programming language that is easy to build simple, stable, and efficient software.
The market share of the Go language generated for concurrency is growing. Configure 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