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
Reference: First, the user log into the system after the system environment variables:
$HOME user's own directory
$PATH directory to search for when executing commands
$TZ Time Zone
$MAILCHECK every few seconds to check for new letters
$PS 1 The prompt number at the command column
$PS 2 When the command is not finished, the Shell asks for the prompt number to be entered again
Search path for $MANPATH man command
Second, special variables:
$ The ex
Shell Introduction
Although not part of the Unix/Linux kernel,But it
It calls most of the core functions of the system to execute programs, create files, and coordinate the running of various programs in parallel.. Therefore, shell is the most important utility for users. It is the key to making good use of Unix/Linux systems by thoroughly understanding and mastering sh
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 and programming language. Its role is to fol
Copyright notice: This article by Hangyuan Li original article, reprint please indicate source:Article original link: https://www.qcloud.com/community/article/109Source: Tengyun https://www.qcloud.com/communityThe purpose of this article is to share some of the benefits of analyzing Shell's source code at school, to help you understand a shell's workflow, and to look at some of the design advantages and drawbacks of a long-standing software like the shell
Shell learning notes, shell script Learning Guide
It's all a bit of fragmented knowledge. What do you need to write!
1. shell Script Parameters
C uses (int * argc, char * argv []) to process parameters, python sys. argv [0] (Script Name), sys. argv [1], sys. argv [2] and so on indicate each parameter. The shell script
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 shell is too difficult, but because she is too large, also may be because of their own
Php-cli introduction (Shell is not used in the same way as the Shell language ). 1. Basics 1.1 What is Shell programming? In Unix, shell is not a simple command interpreter (typical DOS in Windows), but a fully functional programming environment. Shell
1. basic knowledge1.1
Introduction to several common Shells
Linux provides a variety of shell options. Frequently used include Bourne shell (SH), C-shelll (CSH), KoRn shell (Ksh), And Bourne again shell (BASH ).
(1) The Bourne shell is developed by Steven Bourne Of The att Bell lab for att Un
[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 Linux Shell series blogs summarized during this peri
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 series tutorials.In the last two articles: Linux Shell series (1
Functions in the shellThe function is to organize a piece of code into a small unit, and give the small unit a name, when the code is used to call the name of the small unit directly. Format: function F_name () {Command}The function has to be on the frontExample 1#!/bin/bashINP () {echo "The first is $ $"echo "The second is $"echo "The third is $"echo "The script is $"echo "The number is $#"}INP a b c d EThis function is used to print the parameters of the[Email protected]
1. Define functions within the shell file and refer to:
Copy Code code as follows:
[~/shell/function]# Cat factorial.sh
#!/bin/bash
function factorial
{
Factorial=1
For ((I=1;i Todo
factorial=$[$factorial * $i]
Done
The factorial of ECHO is: $factorial
}
Echo ' program name ': $, for factorial
Factorial $
[~/shell/function
This article is part of the Linux Shell Series Tutorial (11), more Linux shell tutorials: Linux Shell Tutorials
In the previous Linux Shell Series tutorial (10) Shell for loop, we have introduced a for loop for Shell loop stat
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 in DOS. 2. A user can store a series of comman
The RC in the configuration file. bashrc in the home directory indicates resource configuration.
What is login shell? What is a non-Logon shell?
Logon shell refers to the shell that is started after the user enters the user name and password when logging in. (2) The Shell
"Thedifference between the login shell and the Non-login shell "
Login Shell: A full login process is required to go to bash. That is, by entering the account and password to log into the system, the obtained shell is called the login shell
non-login
This article mainly introduces the Linux Shell Script series (i): Introduction to the shell, this article explains the shell introduction, Shell basic operations, how to open the shell terminal, Shell script concept, how to run
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.