First, Dmidecode view motherboard information
The code is as follows:
Dmidecode-t 2
Second, Dmidecode query memory information
The code is as follows:
Dmidecode-t 16
Here you can see the maximum memory size that the current server allows for
In Linux system Management, we sometimes need to kill a user of all processes, beginners generally first query out the user's all PID, and then kill, or write a script, in fact, there are ready-made methods, there are 4 ways, we take the kill user
When we use specific commands to read or edit text from a string or file under Unix/linux, we often need to filter out the output to get the interesting part. Then the regular expression comes in handy.
What is a regular expression?
A regular
In this section of the Awk series, we'll see one of the most important features of awk, field editing.
First, we need to know that AWK can automatically separate the lines entered into several fields. Each field is a set of characters that are
In the sixth section of the Awk series, let's take a look at the next command, which tells Awk to skip over all the remaining patterns and expressions you have provided, and directly process the next input line.
The next command helps you prevent
First, symptoms
sudo command execution is slow, for example: sudo-u root ls-l/tmp, running after a very long time to run the results of the instructions
Ii. Solutions
Generally because there is no corresponding "host name IP address" in
Problem: Chinese characters appear to be garbled (current system encoding is UTF-8,CRT encoded as UTF-8)Principle: Maintain file, System, CRT three coding format consistent canProcessing process:
Method 1:
A, view the file's encoding formatYou can
1: After the power supply, the first step of the host is to query the BIOS (full name: Basic input/output System) information. Understand the hardware status of the whole system, such as CPU, memory, video card, network card, etc. Well, this step
Problem:
I have a keesail user. I want to have it read and write the local folder permissions should be switched to the root account what commands to give Keesail permissions?
For example, a directory dir, your username Hengyang, you can give
One, the partition mounts, the following operation will divide the data disk into a partition to use.
The code is as follows
Copy Code
1, view the data disk
You cannot see the data disk until
Several concepts:
1. Regular expressions extended by basic regular expressions (composed of ordinary characters + metacharacters)2. Wildcard (composed of ordinary characters + meta characters)3. Meta character
Note: The meaning of the
Deletes the specified file in the specified directory
Find the directory name-name. SVN |xargs RM-RF
Delete a file or folder with the specified name: Find-type d | grep. svn$ | Xargs Rm-r
Analysis:
Find-type D | grep. svn$ This command to find
Find files with more than 10MB
The code is as follows
Copy Code
Find. -type f-size +10000k-exec ls-lh {}; | awk ' {print $ ': ' $} '
Find Path-size +2000k-print
This allows you to print all files that are
Software installation in a Linux environment, it is not an easy thing to do; If you compile from the source code after the installation, of course, the matter is more complex; now the tutorials for installing a variety of software are very common;
After installing the Linux system, log in and modify the file:
The code is as follows
Copy Code
# cat/etc/sysconfig/network-scripts/ifcfg-eth0 device= "Eth0″ bootproto=" None " hwaddr=" 00:50:56:be : 7a:d8″ ipaddr=192
StrutsConfiguration in web. xml: struts2 org. apache. struts2.dispatcher. ng. filter. StrutsPrepareAndExecuteFilter Classpath: struts. xml configurationSpring partConfiguration in web. xml WEB-INF/appCtx-*. xml contextConfigLocation org.
Linux hard disk recognition:After 2.6 kernel, linux will create the corresponding device file under/dev/on the recognized hardware device. For example:Sda represents 1st SCSI hard disks. # V, z B,} 2 F7 U' |Hda indicates 1st IDE hard disks (that is,
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