In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the simple linux scripting process sharing, focusing on its specific steps, the content of this article is compact, I hope you can get something.
Shell is not only a command interpretation tool, but also a script programming language. A Shell script program can be composed of various commands under shell and some specific syntax structures. Shell script program is a plain text file.
How to write script in linux
1. Open the terminal, enter the directory where the program is saved, and type vi test.sh on the command line (the suffix of the Shell script program is .sh, which is for people to see. You can also name it .txt or leave the suffix unwritten).
2. In Shell programming, the character after # can be used as a comment, so we can write some comments in the program, note that we need to declare # on the first line of the program! / bin/bash (csh,zsh..), use #! Used to show that our program is executed with bash
3. A simple script is written here as follows
Program part
4, after writing can be directly run,. / represents the current directory, enter. / test.sh execution, you will find that there is no authority (permission denied), and then we give ourselves a right to run.
A little Shell script works.
The above is a simple linux scripting process to share a brief introduction, of course, the detailed use of the above differences have to be used before you understand. If you want to know more, welcome to follow the industry information channel!
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.