Several ways the shell script reads data:1. keyboard input, default2. read from the file3. Pass through Pipeline command
Functions of Echo:C: No Line changeF: Paper FeedT: Jump latticeN: Line WrapRepresents an escape, for example: "/dev/rmt0"
The variables in the shell are stored as strings, even if you assign values to the value of the shape unless you declare the variable by declare-i.
In the case of numerical/arithmetic operations, you may find the following
$ x=121$ echo $x
Look at the previous section: Linux Shell Data Redirection (input redirection and output redirection) detailed analysis It is estimated that some friends are dizzy, so complex redirect. This time we'll take a look at the pipe command. Shell pipe, it
Reprint: http://blog.gesha.net/archives/221/ Linux system time and hardware clock issues (date and Hwclock) summarize Hwclock, this is easy to faint:
1/etc/sysconfig/clock file, only valid for the Hwclock command, and only useful when the system
Functions allow you to break down into smaller, logical segments, and then be required to perform tasks that require the overall functionality of a script.
Using functions to perform repetitive tasks is a good way to create reuse of code. Code reuse
In writing a shell script, there may be a situation when you need to take a path of two paths. So, you need to use conditional statements to make the program make the right decisions and perform the right actions.
The UNIX shell supports conditional
The use of the shell to achieve Informix performance monitoring, and output in HTML format, intuitive and convenient. It is suitable for monitoring system performance when Informix system is first built. This example is designed according to the
Theoretical part:The loop means that the program executes some statements repeatedly;Whiler loop is a kind of cyclic structure, when it is not known in advance how many times the loop executes, it is necessary to use the while loop; while the
Create a scriptThere are many different shells in Linux, but usually we use Bash (Bourne again shell) for Shell programming because bash is free and easy to use. So the script I've provided in this article is all about using bash (but in most cases
The effect is to convert the argument list to small pieces to pass to other commands to avoid the problem of too long argument listXargs is a filter that passes parameters to the command, and is also a tool for combining multiple commands. It
File directory Management class command vs. Shell featuresFirst, list the contents of the directory.LS: Lists the contents of the current directory or the specified directoryUsage: ls[options][file_or_dirs]Options:Ls-a List all FilesLS-L Display
This article is part of the Linux Shell Series Tutorial (eight), more shell tutorials: Linux Shell Tutorials
In previous: Linux Shell series Tutorial (vii) Shell output This article has a brief introduction to the Shell printf command, which
Use Netcat to listen locally to an allowed legitimate port, such as 80/443 [Email protected]:~# nc-nvlp 80nc:listening on:: ... nc:listening on 0.0.0.0 80 ... Note: If you are attacking a bouncing machine inside a NAT routing network, then you need
Configuration of the Stelnet server# Generate RSA key pair[DEVICEB] Public-key Local create RSA# Generate DSA Key pair[DEVICEB] Public-key Local Create DSA#使能SSH服务器功能[DEVICEB] SSH server enable#配置接口ip地址#设置stelnet客户端登陆用户界面的认证方式为scheme[Deviceb]line
Get the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet Tomorrow's dateDate-d Next-day
Compile Windows Shell extension using DelphiAnyone familiar with operating system principles will know that a complete operating system provides a shell to facilitate common users.Use various features provided by the operating system. Windows (here
Recently, I started to learn how to install Mongo in windows. It is not difficult to perform this operation. I still use it in Linux. But refer to some documents after installation. The title error was found when Mongo was started.
Finally, this
Shell
Shell is a program with special functions. It is an interface between the user and the core program (kernel) of the Unix/Linux operating system. Why do we say shell is an intermediary between the core program of the system and the user?
Use SSH (Secure SHell)
1. What is SSH?
2. How does SSH work?
3. Why do I need to log on using the second method?
4. experiment between Windows 7 and ubuntu Virtual Machine
4.1 ssh password connection
4.2 ssh key connection-
How to interpret quotation marks in Unix Shell
Shell can recognize four different types of leading characters: single quotes character 'double quotation marks character "backslash character \ backquotes character '1. Single quotes ('')
Howard @ 0
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