Modify bash variable content in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. We know two ways to win a variable:
Echo $ HOME echo $ {HOME}
In the echo $ {variable} method, you can
This tutorial mainly describes how to apply and use date, form receiving, session, and cookie in php. The following gives an example to illustrate these tutorials in php. session: PHP instance code: l... this tutorial mainly describes how to apply
Article Title: Application of variables in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I. Reasons
Initial knowledge of PHPAlthough is to do the front-end, but usually read, do projects will be related to the back-end PHP, but not very understanding, and often listen to the PHP big God said: PHP is the best language in the world! So, learn and
Chapter Overview:Don ' t being so excited! Although you have learned hundreds of common Linux commands at this point, as mentioned earlier: "The light command itself does not do a good job ."The next chapter will learn how to use the shell script,
/*Class Ren{public static $color;//staticstatic function (){ren:: $color;Self:: $color;//self can only be written in the class, representing this category}}*/Classes that cannot be instantiated: abstract classesAbstract class animal//keyword
Today, let's learn about Common Unix shell commands. We all know that Unix shell is not only a user interaction interface, but alsoProgramDesign Language: when the system registers, it will execute a Unix shell command file. profile, which will give
Statement: This series of blog reference "Big Talk design mode", author Geoscience.
Singleton mode, also known as the single State, is the simplest of 23 design patterns, from his name can know his core ideas, single-case mode is only one such
Constants are a very new data type in php. I will introduce some usage of PHP constants in detail for beginners. if you need to know them, refer to the PHP constant define () function.
Constants are a very new data type in php. I will introduce some
For LINUX beginners, I see & mdash; shell script note that the syntax shellscripts is to use shell functions (syntax and command ), A program compiled with functions such as regular expressions, pipeline commands, and data stream redirection is a
Understanding and learning Shell
The shell version used in Linux is called "Bourne again shell (BASH)". This shell is an enhanced version of the Bourne shell and developed based on the GNU architecture.BASH Shell functions
1. Command memory function:
1. What is shell?
In fact, I have heard of shell before I came into contact with Linux. At that time, I was talking about shell programming and I knew nothing about it. But surprisingly, I remember this term when my memory is really bad. Okay,
Part 1 installation in the Java environment1. download the latest j2sdk version from Sun's official website. Here I download 1.5.02. Follow the prompts to install the tool. Note that no space is required in the installation path.Here I install it to
Introduction and use of shell commands
1. What is shell?In computer science, Shell, commonly known as shell, is a software (command parser) that provides user interfaces ). It is similar to command.com in DOS. It receives user commands and calls
Transferred from: Feng yunzhi:Http://witmax.cn/shell-echo-spaces.html
When the echo variable is in shell, only one space is printed in the variable, as shown below:
1 Sh-3.2$ TMP="A B d"2 Sh-3.2$ Echo $ TMP3 A B d
The solution is to add double
[Shell]-Basic Knowledge (2), shell-Basic Knowledge1. Shell script Running Mode
Create a Shell script file, generally ending with. sh (for example, example. sh)
The Shell script runs as follows:
Add 'X' execution permission (relative or absolute
We know two ways to win a variable:
Echo $ HOME echo $ {HOME}
In the echo $ {variable} method, you can also modify the content of the variable. You only need to add some character signs and then use the comparison string to modify the content of the
Variable
Get local host name# Hostname
Obtain the System Version Number# Uname-r
Obtain CPU type
Obtain the cpu operation frequencyCat/proc/cpuinfo
Obtain memory usage# Free-m
Obtain hard disk usage# Df
Variable types and variable operations
Bash internal variable, Bash variable
Bash internal variables
Some internal commands are invisible in the directory list. They are provided by the Shell itself. Common internal Commands include echo, eval, execexport, readonly, read, shift, wait,
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.