Always thought that in the shell script # is to represent the annotation function, also at the beginning of the script #!/bin/sh also just tell the user this is a shell script, and recently checked the next, only to find that this is not the meaning,
Respect for the original works, Ming: This post for the excellent post integration
One, meaning
#!/bin/sh refers to this script using/bin/sh to interpret execution, #! is a special notation, followed by the path to the shell that interprets the
First, meaning#!/bin/sh means that this script uses /bin/sh to interpret execution,#! is a special designator, which is followed by the path to the shell that interprets this script.In fact, the first sentence of #! is the script interpreter program
#! /Bin/sh and $ bash #! /Bin/sh indicates that the script is interpreted and executed using/bin/sh ,#! Is a special identifier, followed by the path of the shell that explains the script. Www.2cto.com $ bash $ indicates the system prompt, $
From: http://www.huihoo.org/apache/tomcat/heavyz/02-catalina.sh.html
1-Overview
The script Catalina. Sh is the most critical script for starting and disabling Tomcat servers.In addition, startup. SH and shutdown. Sh both use different parameters to
1-Overview
The script catalina. sh is the most critical script for starting and disabling tomcat servers.In addition, startup. sh and shutdown. sh both use different parameters to call the script.The script is used as follows (derived from the
How to execute. sh files under LinuxThe. sh file is a text file, and if you want to do this, you need to use chmod a+x xxx.sh to give executable permissions.Is it a bash script?You can use Touch test.sh #创建test. sh fileVI test.sh #编辑test. sh
For more information about Linux general technology-Linux technology and application, it is best for root users to use sh. Original write: linuwa
In many systems, the default shell is sh, especially for root users. Why not use more comfortable
This is an alias set designed for Linux/MACOs users,ASDF. Sh(Https://github.com/shenjia/asdf.sh) designed for QWERTY keyboard users,Aoeu. ShHttps://github.com/shenjia/aoeu.sh is designed for Dvorak keyboard users.
As developers, we need to repeat a
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.