In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
What is Shell?
In the Linux operating system, there are two very important tools: the ① Linux command and ② Shell. Linux commands are many system function interfaces provided by Linux system to users, and each Linux command can complete an independent system function; Shell is an application developed based on C language, it can combine a series of Linux commands together through various logic syntax and program control instructions to form a process-oriented program command (Shell Script).
Linux commands generally need to be executed in a specific environment, our general Linux commands are executed in Shell, need specific environment variables and other support; and Shell script will fork a child process to execute, if the script involves a change in environment variables will only change the environment of the child process, no impact on the environment variables of Shell.
We know that Linux's Shell is an application that combines and executes Linux commands, so there is not only one implementation of Shell. Our common Shell types include: sh, C Shell, TCSH, bash. The default Shell in Linux is bash, which is generally saved in / bin/bash
In other words, Linux commands are a collection of commands with different functions provided by the system, and Shell is an application that can combine multiple Linux commands into Shell scripts, which is equivalent to a script parser.
Shell script syntax
The first line of the l script in Linux typically declares the parser used by the script to the system:
#! / bin/bash, which declares that the script uses the / bin/bash application to parse
The basic expression of the Shell script:
Expression function + +,-- self-increment and self-subtraction (same as C language) +, -, *, /,% addition, subtraction, multiplication, division, remainder operation * * power operation >, > =,
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.