Linux Usage of grep 1. The grep command in linux is a powerful text search tool. It can search text using regular expressions and print matching rows. Grep stands for Global Regular Expression Print, which indicates the Global Regular Expression
UNIX timestamp conversion problems company projects need to query databases far away from the United States, while the database stored over there is stored in the local timestamp. When querying data, a problem occurs, if a date like query is
Remote Access to windows desktop Windows on linux provides a remote desktop system that allows users to remotely log on to the system for system management or run various applications as terminal servers. To connect to Windows Remote Desktop,
Lvm tossing note LVM (reference to Baidu encyclopedia): LVM is short for Logical Volume Manager. It is a mechanism for managing disk partitions in Linux, LVM is a logical layer built on hard disks and partitions to improve the flexibility of LVM
Linux core File Settings 1. A brief introduction to the core file when a program crashes, it generally generates a core file under the specified directory. The core file is only a memory image (with debugging information added) and is mainly used
I used ubuntu 11.10 to access the Internet through a vro. I found that I was unable to access the Internet through a network cable. I used to only use a wireless route. Yes, so I searched for it online. The solution is as follows: modify two files.
Shell script for automatic inspection of multiple servers Abstract: O & M services for more than 20 (or more) servers in a project, the performance inspection of servers is performed every day to check whether the CPU, memory, and disk space of the
In Shell programming, you can use the Shift command to shift the value left. For example, shift 3 indicates that the original $4 is changed to $1, and the original $5 is changed to $2. The original $1, $2, and $3 are discarded, and $0 is not moved.
Use the shell command in combination with grep awk sed sort # when processing a ticket, select the desired ticket first. Here, select the AAA ticket, then sort by corresponding fields # The-k parameter is generally used, and + 0.4 is generally used
Simple Linux skills and commands (1) Simple Linux commands: df Th view disk usage the Prt SC SysRq key on the keyboard captures the Alt + Prt SC SysRq key on the full screen keyboard to capture a Single Window ctrl + l clear screen ctrl + shift + "+"
In linux, fork, source and exec are different. shell commands can be divided into internal commands and external commands. internal commands are in special file format. def implementation, such as cd and ls. external commands are implemented through
Vim script-vertical line '|' and backslash '\' directory: [-] Meaning an example of vertical line is used to link Multiple commands as one command, it is like the semicolon in shell. Note that it is not a pipe. A backslash is used to link multiple
Linux (fedora) File Permission management linux permission management 1. linux basic permissions (1) File Permission Object Classification: Owner: group: Other system users. Owner: the user account that owns the file. The owner of most files has the
Understand sort and uniq commands (including uniq's-u and-d options) [plain] cat a B | sort | uniq> c # c is a union B union cat a B | sort | uniq-d> c # c is a intersect B intersection cat a B B | sort | uniq-u> c # c is set difference a-B
Run the netstat command to check the port usage of a program that occupies a port in ubuntu. View the connected service port (ESTABLISHEDnetstat-a) view all service ports (LISTEN, ESTABLISHED) netstat-ap view port 8080, you can combine the grep
Clear from a simple script: clear the log file 1 in/var/log # clear 2 # Use the root identity to run this script. 3 4 cd/var/log 5 cat/dev/null> messages 6 cat/dev/null> wtmp 7 echo "Logs cleaned up. "This is nothing unusual at all, but it is just
In linux, the date command is used to display and set the system date and time. On a linux server, you can use man date to view the usage of date. In the date setting time format command, each option has the following meanings:-d datestr, -- date
Enable Nginx to disable the version display information. Nginx will display a highlighted version number prompt in the http header or when an error page appears. To ensure security, you can disable this information. The method is very simple, just
SSH Automatic Login (password-free) is actually nothing difficult for me to enter the user name and password every time I use SSH, but it is relentlessly despised by my colleagues. T creates the Public Key 1ssh-keygen-t rsa and ignores any prompts
Install nagios on pure ubuntu and use environment 1. System ubuntu-12.04.1-desktop-amd64.iso 2. Virtual Machine VMware®Workstation 8.0.4 build-744019 3. Remote tool xshell4 2. Installation Step 1. apt-get install ssh2. create nagiios users and user
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