Working on CentOS in daily work, there will always be some common commands that can't be remembered, a special opening, records of those commands, learning and time learning.RPM Action Class command:To view the RPM installation path:1.rpm-qa|grep
First, the role:Grep:global serch REgular expression and Print out of the line.A text search tool that matches the target text line by row according to the user-specified pattern (filter condition);Second, common options:grep [OPTIONS] PATTERN [FILE
File Directory Operations Command[[email] ~]# nl-n rz-w 2 list.txt protected ls02 cd03 pwd04 mkdir05 rm06 rmdir07 mv08 cp09 touch10 cat11 N L12 more13 less14 head15 TailLsLS Prints the inventory and details of the current directory, or you can
Command format:MV [option] source file or directory destination file or directory
Command function:Move a file or directory; rename files and directories
Common options:- b If you need to overwrite the file, back up the file that will be
First, view and manage the currently logged in user
1. Use the W command to view the process information that the logged-on user is using,and the W command to display the names of the users who have logged in to the system and what they are
when installing servers on a large scale, a batch automation method is required to install the server to reduce the daily workload.However, the base of the batch Automation installation server is the network boot server (bootserver).Below we
first look at the General command to view the IP:IfconfigLinux view command--ifconfig for IP addressThe Ifconfig command is used to view and change the address and parameters of the network interface$ifconfig-Alo0:flags=849 MTU 8232inet 127.0.0.1
1.cut commandSyntax formatCut [-bn] [file] or cut [-c] [file] or cut [-DF] [file], there are several options-B: Split in bytes. These byte locations will ignore multibyte character boundaries unless the-n flag is also specified.-C: Split in
Export some logs to a file under Linux, using the ' > ' symbolFor example:grep 13987654321 Monitor.log| grep getcalendarview > shared[[email protected] logs]$The results are as follows:[[email protected] logs]$ ll total
This article transferred from: http://blog.sina.com.cn/s/blog_8e21864f01014u9h.htmlLinux modifies environment variables, very simple but importantI. Variant types of LinuxAccording to the lifetime of the variables, the Linux variables can be divided
Coordinated Universal time (UTC): Coordinated worlds, also known as World standard Times, is known as Greenwich Mean Time (Greenwich Mean time,gmt). For example, the time difference between the Chinese mainland and UTC is +8, which is utc+8. The
How to determine if a dual system is installed in a Linux environment1, you can view the boot situation(1) Enter the Linux terminal and enter the/boot directory.Cd/boot(2) LS view/boot directory, if there is grub2 into the GRUB2 directory (generally
Command format:rmdir [Options] Directory
Command function:use only to delete empty folders
Command parameters:- p Recursive Delete, when the subdirectory is deleted and its parent directory is empty- v displays detailed process information
In the remote management of the Linux system is basically used to SSH, the reason is simple: Telnet, FTP and other transmission methods are in clear text transmission of user authentication information, is inherently unsafe, there is the risk of
In a single-threaded program, we often use "global variables" to implement shared data between multiple functions, but in a multithreaded environment, because the data space is shared, global variables are common to all threads. But sometimes it is
Ubuntu DNS restart failure Modification
Ubuntu 15.04 directly Modifies/etc/resolv. conf, And the configuration is lost after the DNS is restarted.
Correct method:
# Vim/etc/network/interfaces, add "dns-nameservers 223.5.5.5" to the end of the
Enable VNC access in CentOS 5.11
In some cases, you need to use the Linux desktop environment. For example, the installation and configuration of Oracle require a graphical interface.
By default, We have installed and installed the Gnome desktop
How to select the correct HTTP status code
As we all know, each HTTP Response carries a status code, but for many developers, the most commonly used status codes are 200, 400, 404, and 500. In what scenarios should I use other status codes and when
Comparison between Nginx and Nginx +I. Introduction to Nginx +
Nginx and Nginx + are both official Nginx products. The difference between the two is that Nginx is an open-source community version, while Nginx + is a paid enterprise-level version for
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