In Linux we can just use a shell script to instantiate:
The code is as follows
Copy Code
#!/bin/shecho Test >> $ (date-d "Today" + "%y%m%d_%h%m%s"). txt
File in date format?
On Linux/unix, use ' Date +%y%m%d '
As the third part of the awk command series, this time we'll look at how to filter text or strings based on user-defined specific patterns.
When you filter text, you may sometimes want to mark a file or a few lines in a line string based on a given
1, Copy Zabbix page file
[Root@zabbix ~]# Cd/home/zabbix/zabbix-2.2.5[root@zabbix zabbix-2.2.5]# cp-r frontends/php/
2, access to the Web page for initialization
Http://192.168.163.7/zabbix
Please refer to the second and 2 configuration
Sometimes to find a program written before, but a long time forgetful, only remember that the program fragment contains a text.
So how do you find a file that contains a piece of text under Linux?
The powerful find command can help you accomplish
When you start a custom service, you want to use port 8370, but you find that the port is already occupied by nginx or node and cannot be started. But LVs has also applied, change port is more troublesome. So you can modify the next/proc/sys/net/ipv4
Rhel 5.8 32bitHeartbeat v2Ha WebNode1 Node2Node name,/etc/hostsThe node name must match the straight line result of the Uname-n commandSSH Trust Communication,Time synchronization1 Configure IP columns for two hosts first, such as 192.168.1.11 192.16
recently discovered that the machine dual-Network IP restart network card found a network card does not flow, but the outside can ping the network card, and then a variety of Google, Baidu found that the original is eth2 in the local no default
To enable the device to support the asynchronous notification mechanism, the following 3 tasks are involved in the driver:1. Support F_setown command, can set Filp->f_owner to the corresponding process ID in this control command processing.However,
1. HTTP protocolHypertext Transfer Protocol (Hypertext Transfer Protocol), HTML (Hyper Text Mark language)The complete process of a single HTTP transactionClient--Request message--serverClient Web Resources-Static resources: png,html-Dynamic
A judgment on the properties of a file-A If the file exists-B If the file exists and the file is a zone device file-C Returns True when file exists and is a character device-D returns True when pathname exists and is a directory-E Returns True when
Divided into two types: one-time scheduled tasks, periodic scheduled tasks. a one-time scheduled task , also known as the at Timed task, the command for ATD, here D is the deamon of the first letter, the Guardian meaning, refers to the Guardian
Ext.: http://blog.csdn.net/5iasp/article/details/13630927Suppose you have the following requirements:Suppose two servers:192.168.0.1 source server has directory/opt/test/192.168.0.2 target server has directory/opt/bak/test/The purpose of the
Run InitThe init process is the starting point for all processes in the system, and you can compare it to the ancestor of all processes in the system, without which any process in the system will not start.The INIT program first needs to read the
Query a few lines in the file: | Tail-n +"One" starts at line No. 3000 and displays 1000 rows. The 3000~3999 line is displayedCat FileName | Tail-n +3000 | Head-n 1000"Two" displays 1000 rows to 3000 rowsCat filename| Head-n 3000 | Tail-n +1000*
method Four: Function-centric, conquerFunctionally, the entire Linux system can be thought of as a few parts:
Part of the process management mechanism;
memory management mechanism section;
File System
Linux top and free commands (to) and top commands
Link:
Top: The command monitors the status of the system processor in real time. It displays the list of the most "sensitive" CPU tasks in the system.
This command sorts tasks by CPU usage, memory
Linux Virtual Machine installation (using Centos6.3), linuxcentos6.3
1. What is a virtual machine?
A virtual machine is a complete computer system that is simulated by software and runs in a fully isolated environment.
2. Preparations before
Linux LVM logical volume configuration process details, linuxlvm
Many Linux users encounter the following dilemma when installing the operating system: How to accurately evaluate and allocate the capacity of each hard disk partition? If the original
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