Where to look in the shell

Source: Internet
Author: User

[Email protected]_48_191_centos 456]# vim 2.sh

#!/bin/bash #加入这行, which means that the interpreter is bash, no plus, I'm CentOS, the default is bash

Echo

echo $



[Email protected]_48_191_centos 456]#/2.sh 1

./2.sh

1

[Email Protected]_48_191_centos 456]#/2.sh 2

./2.sh

2

[[Email protected]_48_191_centos 456]# SH 2.sh 2

2.sh

2

./execute the script./Execute Script

When using SH execution, the name of the script is


This article is from the "Flying Small GUI" blog, make sure to keep this source http://9237101.blog.51cto.com/9227101/1929676

Where to look in the shell

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.