Differences between./xx. sh and xx. sh in linux

Source: Internet
Author: User
. /Xx. sh: execute xx in the current directory. sh file xx. sh, run the command named xx. sh file if the latter before running. (the current directory) is added to the environment variable and has the executable permission. Otherwise, if the environment variable is not added, the system prompts that the file cannot be found and the execution permission is not...

 

./Xx. sh: execute the xx. sh file in the current directory

Xx. sh: run the file named xx. sh.

If the latter. (the current directory) is added to the environment variable and has the executable permission. Otherwise, if the environment variable is not added, the system prompts that the file cannot be found, if you do not have the execution permission, the system will prompt that you cannot find the permission or the permission is insufficient.

In other words,./xx. sh is The xx. sh under the current directory, but xx. sh is The xx. sh file that executes % path % \.

 

From KIMI

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.