Linux must use the Linux shell command . Nonsense! You don't know any Linux commands , such as Ps,grep,ls, but you can still use a lot of modern Linux desktop distributions.
Linux system administrators are not like desktop users, they don't
This article mainly introduced the Linux Shell script view numa information, this article directly gives the script implementation code, needs the friend may refer to under
Nova provides NUMA-related advanced features in the NFV scenario, which
The waste CPU opens the shell to open the process.
1. Preparation work
2, this step with a knife when you must be careful to be patient, do not scratch the CPU cover and the following section, do not be afraid of no place to row, the
This article introduces the Linxu shell of the relevant knowledge of the array, and a lot of examples for reference, including the copy of the array, calculation, deletion, replacement, etc., is to learn the shell array of rare good articles.
The
I am not studying things under Linux, so here is only a description of the use of shell script, I am in the process of using the problem recorded, but also write down some of the rules of the shell script syntax, easy to view later. Let's take a
Basic knowledge of strings
Strings are the most commonly used data types in shell programming (except numbers and strings, and nothing else works), strings can be in single quotes, double quotes, or without quotes. The difference between single and
In addition to the "If,else" form, there are other forms of "if" statements:
Copy Code code as follows:
if [condition]
Then
Action
Fi
The statement performs an action only if condition is true, otherwise the operation
This article mainly introduces the Linux bash shell in the variable types of detailed, variable types are divided into local variables, local variables, environment variables, position variables and special variables, etc., the need for friends can
#!/bin/bash (fixed start)# Comments (in script)Cat 1.sh Viewing scripts1. Execute the Script1) Execute permissions for script firstchmod 744 1.sh or chmod +x 1.sh2) execution . /1. SH (./current path)2. Give permission to run directlychmod a+x
Shell echo display in script with color display , echo display with color, need to use parameter- e The format is as follows: echo-e "\033[ word background color; text color m string \033[0m" For example:echo-e "\033[41;36msomething here \033[0m"
1, write script/root/bin/createuser.sh, to achieve the following functions: Use a user name as a parameter, if the user specified parameter exists, it will show its existence, otherwise add, and generate a 8-bit random password and there is a file,
#1, print the usage of the mounted directory, the default is separated by a spacedf-ph | awk ' {print $5,$6} '#2, separated by a space, colon, \ t, semicolonAwk-f ' [: \ t;] ' ' {print '} '#3, Print lines 3rd through 5th in the 6.txt file, nr
Shell Loop: ForThe number of cycles is fixed=====================Shell:For variable name [in value list]DoLoop bodyDoneC Language:for (initial value; condition; step))DoLoop bodyDone=====================Shell loop: While untilThe number of cycles is
Shell Exercise Training
Sum of 2 numbers
Calculates the 1-100 and
Change the extension of all files in a directory to Bak
Compile all. c files in the current directory:
Print root can use the number of executable files to process the
Query IP on the Web page open URLs can be displayed, but at the command line can be installed w3m/links/lynx these command-line browser, but for this and feel inconvenient, so a lot of IP site to provide unix/linux.Command line query (verbose): Unix/
Linux version: CentOS 6.7//Can be viewed using lsb_release-aFirst, modify the/etc/mail.rc//on the last side of the line, you can also echo >>Set [email protected]//your own real e-mail addressSet smtp=smtp.exmail.qq.com//In mailbox settings, client
Linux network configuration and SSH and Shell basicsFirst, the Linux network configuration The ifconfig command is used to configure and display network parameters for network interfaces in the Linux kernel. The NIC information configured with the
In a shell script, the $ A is typically used to display the name of the script, which displays the path name of the script when not using basenameFor exampleCat test5.sh #!/bin/bash # Testing the $ parameter echo the zero parameter is set
Arrays ArrayVariables: Storing the memory space of a single elementArray: A contiguous memory space that stores multiple elements, which is equivalent to a collection of multiple variables that support sparse formatting, which is a discontinuous
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