The reason that the current directory needs to be run under Linux is added.

Source: Internet
Author: User

Run the file in the current directory under Windows, and you can run the file directly by entering its full name. For Linux, however, the./file name must be added to run. Puzzled at this point, the final review of a

Information to figure it out.

1. In Windows and DOS operating systems, when the system is required to run a program without telling it the full path of the program, the system will look for the path specified in path except for the program under the current directory.

2.Linux does not check the current directory, but instead searches directly on the path path

Therefore, under Linux, executable files can only be executed if they are located in path paths or given an absolute or relative path to an executable file.

The reason that the current directory needs to be run under Linux is added.

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.