This article mainly introduces the variables in the shell use summary, this article summed up the variable syntax, common use forms and so on, and give the code examples, the need for friends can refer to the
The definition of a variable can only
What is a bean Shell BeanShell is a scripting language that conforms fully to the Java syntax and has some of its own syntax and methods; BeanShell is a loosely typed scripting language (this is similar to JS); BeanShell is written in Java, a small,
Command lineWhen users log on to the Linux system, they can see a shell prompt that identifies the start of the command line. The user can enter any commands and parameters after the prompt. For example: $ date 211 01:34:58 CST 1999 $
The following command lets you see which CPU the process is running on.
vostro-270s:$ Ps-elo RUSER,PID,PPID,PSR
Root 3 2 0
Root 5 2 0
Root 8 2 0
Root 10 2 0
Root 11 2 0
Root 12 2 0
To explain the above command, the PS command displays the status
http://blog.51cto.com/zt/267
Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated.
Excerpt from: Abs_guide: http://www.tldp.org/LDP/abs/abs-guide.pdf
The meaning of shell variable $#,[email protected],$0,$1,$2 in Linux is explained:Variable Description:$$The PID of the shell itself (ProcessID)$!PID of the Shell's
How awk WorksThe first step: Execute Begin{action ...} Statements in a statement blockStep two: Read a line from the file or standard input (stdin), then execute the pattern{action ...} Statement block, which scans the file row by line, repeating
Requirements: accurately monitor CPU with top commandPreparation knowledge: Top use, basic awk, DC (default bash shell does not support decimal operations)The script is as follows[[email protected] scripts]# cat cpu.sh #!/bin/bash -# top -n 参数指定运行次数,
From the programmer's point of view, the shell itself is a program written in C language, from the user's point of view, the shell is the user and the Linux operating system communication Bridge. The user can either enter command execution or use
Contact Linux in the sophomore time, then fascinated by the embedded Linux, the computer replaced with Linux system, learning the basic knowledge of Linux, learning Linux commands, learning shell, bubble forum, so slowly the normal work of learning
This article mainly introduced the shell script if condition judgment and the judgment condition summary, this article first gave the IF condition judgment the grammar, then gave the commonly used judgment condition summary, needs Friend can refer
Expect:is based onTcla relatively simple language for a free scripting toolused to implement automated and interactive task programs for communication without manual intervention. For example:ssh ftp , and so on, these programs normally need to
number of logged-in users: who | Wc-l
See which users are logged on to the system : who
Create a new file /bin/ct11, enter a command in the file,chmod Set the Execute permission for the file
# cat >/bin/ct11W.H.O. | Wc-lPress Ctrl+d# Cd/
8.6 Pipe break and job control pipe symbol "|"
The effect of a pipe character is to drop the result preceding the symbol to the command following the symbol. Not all commands are available after the pipe character, and generally commands
Have you ever experienced a situation where you log in to a remote Linux host from the terminal software, Compress a large pile of files into a. tar.gz file, compressed for half an hour is not finished, at this time, suddenly you broke the network,
by Francis_hao Oct 2,2017This article extracts the Man manual from bash.The related forms of arithmetic operations
Form
Meaning
((expression))
expression is performed according to the arithmetic
Shell Test CommandThe test command in the shell is used to check if a condition is true, and it can be tested in three aspects of numeric, character, and file.Numerical test
Parameters
Description
-eq
Equals
Transferred from: http://www.360doc.com/content/13/0523/16/7044580_287544243.shtml
on the shell:0 indicates standard input1 indicates standard output2 indicates standard error output> default to standard output redirect, same as 1>2>&1
Features of bash in the shellFeatures of bash in the shellOne of the bash features: command line expansion The mechanism of automatically replacing a given special symbol of a command line with another stringDirectory: Command: CD "Built-in
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