Bash /etc/init.d/hostname.sh no such file or directory


















Active Oldest Votes. How To Change Hostname. Debian wiki. Improve this answer. Sign up or log in Sign up using Google. Sign up using Facebook.

Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. Why does bash on windows say "No such file or directory"? Asked 2 years, 5 months ago. Active 2 years, 5 months ago. Viewed 10k times.

Don Rhummy. Don Rhummy Don Rhummy PaulHodges The above lines of code are my entire input e. PaulHodges Updated with info requested — Don Rhummy.

Add a comment. Active Oldest Votes. You can find an example below: sudo apt-get install dos2unix -y dos2unix test. Tom B Tom B 2 2 silver badges 2 2 bronze badges. While this does work, realize that the interpretation of line ending characters is shaped by the shebang on the file.

So this can fix the problem, but so can changing the shebang. I had this problem with the Atom editor on Windows. The default line ending was CRLF. Then when you WinSCP the bash script to Linux it should execute without that misleading No such file or directory error.

The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Related Hot Network Questions. Question feed. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000