Run the. sh file in Linux and prompt Nosuchfileordirectory.

Source: Internet
Author: User
Run the. sh file in Linux and prompt Nosuchfileordirectory. write the shell script file on the Windows platform, migrate the file to the linux platform, Grant executable permissions, and execute the sh file, but prompt Nosuchfileordirectory. Ls. This article does exist... linux execution. sh file, prompting No such file or directory problems in the window platform, write a shell script file, migrate to the linux platform, Grant executable permissions, execute the sh file,
The system prompts No such file or directory. Why is there a file after ls? is it a file format compatibility problem? Open the sh file with vim, enter [plain]: set ff www.2cto.com and press enter to display fileformat = dos. reset the file format: [plain]: set ff = unix save and exit: [plain]: wq can be executed again. This incident reminds me again that the program should be written in linux as much as possible, and there may be fewer problems during migration. Author love _ coder
Related Article

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.