Linux under the./Essence

Source: Internet
Author: User

I do not know when to./The feeling is that this is a run command, because you want to run a file when it is used.

But this is obviously wrong./description is the current directory. That is, the current directory. As to why running the current directory

The file needs to be added./For the following reasons.

    • When the Linux system runs the program, if the specific file path is not specified, the system searches for the program in the search path specified by the environment variable path, executes the program if it is found, and if it does not find the report: Command not found (commands not found)

    • Therefore, if you want to run a program in the current directory without the pathname, you must make a search path setting in path, such as:

      Export path= $PATH:.

      Point (.) refers to the current directory, dot (.. ) refers to the previous level of the directory

    • If you do not specify the current directory in path, run the program and you must add the path name, such as:

      ./myprog

      /tmp/test_prog

Linux under the./Essence

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.