The $ symbol in Bash is used to replace the parameter name with the value represented by the parameter. For $, braces are optional, that is, $ A and $ {A} represent the same parameter. $ {} There are several expressions with colons: $
Http://tech.foolpig.com/2008/07/09/linux-shell-char/
Shell string truncation problem:1. Linux Shell intercepts the first eight characters of the character variable by using the following methods:1. expr substr "$ A" 1 82. Echo $ A | awk '{print
Although he does not know who Lu Jun is, his book is indeed easy to understand and has the meaning of training materials..
Linux Shell programming started from UNIX and was presented as a human-computer interaction tool in the early days. After
How to run a script
Three methods:
Absolute path:/tmp/shell. Sh
Relative Path:./shell. Sh
Variable path: Put the directory where the script file is located in path, and then shell. Sh
Below is a simple script
And learn anyProgramming
8 hours reference
Terms
Reference: The selected text is enclosed by some type of reference tag, so that the selected text becomes a text character.
Escape: escape a character means that a backslash (/) is added before the character to escape
Option-Y: The operation is performed without user confirmation.
Yum-y install : Install the specified software.
Yum-y update: Upgrade the software.
Yum-y update : update a specific file
Yum check-Update: checks whether software needs
I don't know when I wrote something, But I was found by archaeology when I sorted out the documents. I just smiled at those people who were bored. If the errors in this article cause all mental losses to you, contact the insurance company! Of course
CTRLKey bound_____________CTRL +-Jump to the start of the lineCTRL + B-Move back a charCTRL + c-Terminate the commandCTRL + d-Delete from under the cursorCTRL + E-Jump to the end of the lineCTRL + F-Move forward a charCTRL + k-Delete to EOLCTRL +
From: http://www.cnblogs.com/hanyan225/archive/2011/10/06/2199652.html
There is no doubt about the strength of shell, which makes it easier for us to confuse us. For example, I have always thought that I am smart and cannot tell you clearly.In Shell,
List of Common Unix shell commands
Passwd Change User Password PWD print current directory CD change Directory ls list directory file wildcards *,? Any number of characters and a single character file print out the file type cat display
What is shell? Shell is an interface for user interaction with the kernel. It can be used as a command interpreter. After a user inputs a command, shell will explain it and then send it to the kernel for execution,
After knowing what shell is, let
Install JDK in Linux
Download the original JDK version of Sun: http://java.sun.com/products/archive/. you can download any JDK of sun. I used to find jdk1.4.2 _ 08 for a long time and I couldn't find it. I accidentally found this portal useful, so
In the Linux Shell environment, two regular expression rules are provided. One is the basic regular expression (BRE), and the other is the extended regular expression (ERE ).The syntax list of these two expressions is as follows. Note that, if meta
Linux system resource load is too high and Apache shell script is automatically restarted
When we routinely maintain Apache Web servers in Linux, the endless loop caused by crawler crawling cannot jump out, or the collection of data from peers
Forwarded from blog: http://www.51testing.com /? Uid-390472-action-viewspace-itemid-232903
TimeCommand is used to print the execution time of a command or program.Time
The time, system time, and time used in the execution of a command in
A wonderful article on arstechnicaCommentThe replacement of cmd.exe under Windows is described in detail. Microsoft command shell, also known as MSH, and the project code is monad. From the comments, mshdoesn't just make cmd.exe unable to look
File Attribute operations in Lesson 5
File attributes include:
1) Permission
2) Owner
3) Group
5.1 file type
5.1.1 determine the file type
To determine the type of a file, you can add the-L option to LS. All types are listed.
For example:
$ LS-L/
The color of the text terminal can be generated using an ANSI unconventional character sequence. Example:
Echo-e "/033 [44; 37; 5 m me/033 [0 m Cool"
The preceding command sets the background color to blue, the foreground color to white, the
By learning how to program using the bash scripting language, you can make the daily interaction of Linux more interesting and productive. You can also use the familiar and favorite standard UNIX concepts (such as pipelines and redirection ). 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.