Linux shell BASICS (7) and Linux shell BasicsVII. Process Control Condition judgment control in the bash script-[] ([] expression is true) (execute the following command when the result of the front side is true) | (if-case loop control-while-utile-for-break-continue # [abc] # echo $? 0 (true) # [] # echo $? 1 (false)
--book author Shenmon reprint please specify the source
Content Introduction
Objective
What is a shell?
Our first shell script
Run the shell script
Summarize
Part V Third lesson preview: variable in hand, shell not worry
1. PrefaceThe previous lesson is a
Linux Shell series (15th) Shell function introduction, linuxshell
This article is part 15 of the Linux Shell series. For more Linux Shell series tutorials, see:
[Shell series] common Linux Shell skills and shelllinux skills
In recent daily work, we often deal with Linux servers, such as Oracle performance optimization and resource utilization monitoring of our data collection servers, debug server code and solve problems such as efficiency and stability. Therefore, the
2015-05-08 00:15 3896 people read review (US) Collection report This article has been included in:Classification:Advanced Software Development (419) Author of similar articlesX
unix/linux Miscellaneous (118) Author of similar articlesX
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.In this era, we write some books, but also just to make some money, basically is a list of some k
playing Linux does not know the shell, that is, do not understand Linux. This statement is enough to witness the shell's position in Linux operations. Always want to write down the shell, but always do not know how to write, not because the
(after waking up for a nap, the mind is particularly clear, so to organize a piece of Cao classmate's yesterday answers the ^_^, the process of collecting information, but also the process of learning)Background:Yesterday quickly off work, every time to catch the suburban bus Cao classmate will run off on time, but it is almost 7 o'clock, Cao classmate still indifferent in the seat, this is abnormal, after a small meeting, Cao classmate ran over.Cao Classmate : I made a mistake ~ ~ ~ a
This article is part of the Linux Shell Series Tutorial (eight), more shell tutorials: Linux Shell Tutorials
In previous: Linux Shell series Tutorial (vii)
This article is part (iii) of the Linux Shell Series tutorial, more on the Shell Tutorial: Linux Shell Series Tutorials
The shell is an advanced scripting class language and also supports custom variables. Today we will introd
Linux Shell series (12) Shell until loop, shelluntil
This article is Part 12 of the Linux Shell series tutorials. For more Linux Shell tutorials, see the
Linux Shell wildcards, escape characters, metacharacters, special characters, shell escape1. linux shell wildcard (wildcard)
Wildcards are processed by shell (not by the command statements involved, but we have not found any intro
1. Linux Scripting Basics
1.1 Basic Introduction to grammar
1.1.1 Start
The program must start with the following line (must be on the first line of the file):
#!/bin/sh
The symbolic #! is used to tell the system that the parameters behind it are the programs used to execute the file. In this example we use/BIN/SH to execute the program.
When you edit a good script, you must also make it executable if you want to execute the script.
To make the
Q: What is a shell and what is a shell script?A:shell is a program written in C, which is a bridge between the user and the Linux operating system. The user can either enter command execution or use shell scripting to do more complicated operations. It is the general designation of command Language, command interpreter
Monitor linux traffic for shell and linux traffic for shell
If you want to view linux traffic in real time and do not want to go to a third-party tool, you can directly write and run it!
System: centos 6.5
Principle: Get the traffic from/proc/net/dev, and then get the traffi
Here I will first describe what a shell is, and then introduce my first shell program and summarize the experience from it.
First, what is the shell
Before talking about my shell program, I would like to talk to you about what is shell, I believe that the word
Linux shell programming 1 ---- shell script programming basics 1 What is shell script 1 shell is not only a command interpreter but also a programming language, a program written in shell is similar to a batch processing program i
First, install the following Linux mail client msmtp software (similar to a foxmail tool)1. Download and install:
Copy Code code as follows:
# tar JXVF msmtp-1.4.16.tar.bz2
# CD msmtp-1.4.16
#./configure--PREFIX=/USR/LOCAL/MSMTP
# make
# make Install
2, create MSMTP configuration file and log file (host for the mail domain name, mail username test, password 123456)
Copy Code code as follows:
# Vim ~/.MSMTP
Before we know about redirects, let's take a look at the Linux file descriptor.
Linux file Descriptor: Can be understood as a Linux trace open file, and the allocation of a number, this number is similar to the C language operation of the file when the handle, through the handle can be implemented to read and write files. The user can customize the file descript
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.