http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.htmlIntroductionAwk is a powerful text analysis tool, with the search for grep and the editing of SED, which is especially powerful when it comes to analyzing data and generating reports.
[Email protected] ~]# More/proc/cpuinfoYou can see the detailed content or:[[email protected] ~]# cat/proc/cpuinfo |grep "model name" && cat/proc/cpuinfo |grep "Physical ID"Description: Detailed information about each CPU can be seen in/proc/cpuinfo
Fdisk [-l] Appliance name-L outputs all partion contents of the device after it is connected[Email protected] ~]# fdisk/dev/sda2Device contains neither a valid DOS partition table, nor Sun, SGI or OSF DisklabelBuilding a new DOS disklabel.
1. Modify IP Address: Set static IP address#vi/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0Bootproto=static//bootproto=yes cannot appear in either state or erroripaddr=192.168.12.28// Add IP Address netmask=255.255.255.0// Mask gateway=192.16
Write Linux NIC driver, need to move arm version to x86 version test, this need to recompile to adapt to x86 PC's source tree. In fact, the installation of the system already has a source tree, do not need to recompile as the arm version, located
Etc/profile: The first file that is used when the operating system customizes the user environment at logon, which sets the environment information for each user of the system, which is executed when the user logs on for the first time.
Disk partitions are: Primary partition, extended partition, logical partitionA hard disk can have up to 4 partitions, and a hard disk must have only one extended partition (cannot be used)Multiple logical partitions must be partitioned and formatted
Linux server time synchronization in LAN1. Use an Internet-capable server as a time server:#/usr/bin/rdate-s time-b.timefreq.bldrdoc.gov//Synchronize the time server with the Internet time server#/ETC/INIT.D/NTPD Start//Start time server#
Sometimes in the process of configuring Linux, because some misoperation caused the system to block or suspend the initialization of the system can not enter, often because the configuration file settings are wrong, some files were mistakenly
Linux SSH Secure LoginTo create an SSH key[Email protected] ~]# ssh-keygen-t RSA #创建密钥Generating public/private RSA key pair.Enter file in which to save the key (/ROOT/.SSH/ID_RSA): # key LocationEnter passphrase (empty for no passphrase): #输入密钥,
Linux SSH Secure Login To create an SSH key [Email protected] ~]# ssh-keygen-t RSA #创建密钥 Generating public/private RSA key pair. Enter file in which to save the key (/ROOT/.SSH/ID_RSA): # key Location Enter passphrase (empty for no passphrase):
CentOS6 to CentOS7In just a few weeks after the release of Red Hat Enterprise 7, centos7 was also released, and included the equally exciting features as red hat. In addition to the long-awaited systemd and popular Docker, this release also makes it
Linux memory mechanism
In Linux, we often find that the idle memory is very small. It seems that all the memory is occupied by the system. On the surface, it seems that the memory is not enough. This is an excellent feature of Linux memory
Open Port 80 of CentOS Firewall
APACHE cannot be installed on CENTOS of a virtual machine. The solution is as follows:
/Sbin/iptables-I INPUT-p tcp -- dport 80-j ACCEPT/Sbin/iptables-I INPUT-p tcp -- dport 22-j ACCEPT
Then save:
/Etc/rc.
CentOS command for viewing TCP connections netstat
The netstat command displays network connection, route table, and network interface information, allowing you to know which network connections are in operation. In our daily work, we usually use
Remote centos yum source Modification
Yum-y install unzip cannot be executed. It means that the unzip package cannot be found. If you find that the yum source is faulty, modify yum,
The method found on the internet is as follows:
1. cd/etc/yum.
Detailed description of Nginx startup/restart scripts and nginx restart scripts
Nginx Manual start
Stop operation
The stop operation is performed by sending a signal to the nginx process (for more information about the signal, see the linux chapter )
Date command in CentOS-display and set the system date and time
The time on the operating system may only be used as a clock. Especially in the console, we usually do not think that time is important. However, this is wrong for administrators. Do
Multi-thread breakpoint download tool in linux-alex, multi-thread-alex
Today, I want to download a file of about 14 GB. I used wget for about 10 hours. Later I found a multi-thread download tool for resumable data transfer in linux, alex. I tried it
Hide the Nginx error page and the version number on the Header
Nginx displays the Nginx version number on error pages, such as 403 and 404 by default. This is very insecure. hackers may learn how to intrude into your server through your Nginx
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