The Vmstat command reports statistical information about kernel threads, virtual memory, disks, traps, and CPU activity. Reports generated by the Vmstat command can be used to balance system load activities. The system-wide statistics (in all
Today's small weave to share the use of the next very useful command for the Linux system: The tree command can display the file directory structure in a TreeView, and it is ideal for us to introduce a framework of our file directories, with the
The following values are common in all basic configuration files:
* Device=name, where name is the name of the physical device (except for dynamically assigned PPP devices)
Its name is "logical name."
* Ipaddr=addr, here addr is the IP address.
*
Accidentally deleted a file in Linux, but ps-ef|grep file name found that a process is still using the file, you can pass
Recover the file in the following ways.
For example:Create a simple file/tmp/test.txt, write something inside
Two client
Liunx the server used by the shared file server is samba, so the Linux shared server is the samba server;
1, need to check whether the Linux has been installed samba; Check the command for: Rpm–qa |grep Samba; If there is no output of any
. Find the contents of a file in a batch, for example:
# grep-rn "Text to find".
2. Find and replace the contents of the file in bulk.
# sed-i "s/the text to find/replace text/g" ' Grep-rl "to find text"./'
Other uses of SED are as follows:
When a field in a database, such as an ID, is an integer, the new insert data needs to be sorted from the total maximum value of the current database plus 1.
The maximum ID for the current production database is 150, so it is necessary to start
SSH port By default is 22, we generally for the security of the server will be the SSH Port 22 modified to other ports well, the following small set up to you to organize an SSH port modification tutorial for your reference.
VPS one hand, the
Logical volumes can dynamically adjust disk capacity, thereby improving disk management flexibility, this is mainly about the creation of a logical volume (LVM), the creation of LVM logical volumes follow the idea:pv>vg>lv> format, mount the use of
I. Change of command
1, the use of Xrandr query, with "*" is the current desktop resolution.
2. Change resolution
Where "20" is the number of "SZ".
3. Use the Xrandr command to view
Note : More wonderful
Role:
Print System Information
Format:
Uname[option] ...
Describe:
Output specified system Information, no option with-s
Options:
-A,--All
Output All information
-S,--kernel-name
Output Kernel Name
-N,--nodename
Output Network node host
There are two types of links, one called hard links (Hard link) and the other is called Symbolic link (symbolic link). By default, the LN command produces a hard link.
A hard connection is a connection made through an index node.
In a Linux file
First, the realization principle
SSH logon is done using a method known as "Public key" authentication. A simple explanation for the "public Key" authentication method is:
First create a pair of public private keys on the client (public key file: ~
1, in the character interface input STARTX or init 5.
2, through the editing/etc/inittab file to achieve the default into the graphical interface.
Change the 3 in the Id:3:initdefault to 5, so that after the system starts, it will go directly to
How do I get a quick look at a file?
The word Linux itself only represents the Linux kernel, but in fact people are accustomed to using Linux to describe the entire Linux kernel, and the use of GNU engineering tools and databases of the operating
The Linux cloud Server data disk is not partitioned and formatted, and can be partitioned and formatted according to the following steps. The following operation will divide the data disk into one partition to use. Applicable system: Linux (Redhat,
/etc/hosts.allow and/etc/hosts.deny Two files are settings that control remote access by allowing or denying access to a service to Linux by a client of an IP or IP segment.
If the requested host name or IP is not included in the/etc/hosts.allow,
When a new Linux server is configured, if you need to configure iptables, you are typically configured with the following command:
First, install and start the firewall
[Root@linux ~]#/etc/init.d/iptables start
When we use Iptables to add rules,
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