Linux's most commonly used shell commands

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

Linux Shell script View numa information

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

How to remove the CPU shell? A detailed tutorial on the CPU shell opening

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

Deep understanding of Linux shell array _linux shell with examples

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

Shell script Programming If statement learning Notes _linux Shell

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

Shell script string The difference between single and double quotes _linux shell

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

How to use IF statements in bash scripts _linux shell

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

A detailed explanation of variable types in the Linux bash shell

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

(a) Shell programming writing specifications and execution methods

#!/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

Linux,shell script, font color and settings

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"  

Advanced shell scripts (for, while, if, case)

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,

Some uses of Shell awk

#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 script for Loop

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

String manipulation in the shell

Shell string manipulationThe bash shell provides several commands for string processing: awk command Expr command String length ${#..} Length of expr Length of awk (s)Instance:string= "Hello World"$ {#string}Expr

Linux Shell Exercise Training

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

The Linux shell command line queries the external network IP

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/

Implementing shell bulk mail scripts in Linux

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 basics

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

Simple use of basename in the shell

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

Array of advanced shell programming

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

Total Pages: 541 1 .... 119 120 121 122 123 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.