Truemag

  • Home
  • Angular JS
  • C Sharp
  • DevOps




How to solve file not found error in Linux?

Today, while working I found a very strange error coming while trying to execute a Linux script. The error what I was getting said that script does not exits although, I was able to edit it using the vi editor.

After a long search found that the Linux was not able to read the file. as it was copied/ developed on a windows machine. So, there a very simple solution to this problem.

We have a package available i.e. dos2unix which can be installed on any flavor of Linux server and it can be used to convert the files into Linux readable files. Given below are the commands that we can use to install dos2unix

sudo yum install dos2unix -y

After we have installed dos2unix package we can execute a very simple command to convert the file so that unix system can easily interpret it or execute it.

dos2unix filename.sh

Here file.sh is the file that needs to be converted to unix based file system.

Jun 4, 2020Prashant Kumar
How to delete local branch in git?Case Statement in Azure DevOps
  • Case Statement in Azure DevOps
  • How to solve file not found error in Linux?
  • How to delete local branch in git?
  • What is the git command to move branch pointer to different commit without checkout ?
  • What command tracks the revisions in git ?

Sign up for our newsletter to receive the latest news and event postings.

Recent Posts
  • Case Statement in Azure DevOps
  • How to solve file not found error in Linux?
  • How to delete local branch in git?
  • What is the git command to move branch pointer to different commit without checkout ?
  • What command tracks the revisions in git ?
Recent Comments
  • How to change directory in git bash? - Prashant's Blog on How to delete local branch in git?
  • eebest8 on How to use Http Post in Angular 4

  • Case Statement in Azure DevOps
  • How to solve file not found error in Linux?
  • How to delete local branch in git?
  • What is the git command to move branch pointer to different commit without checkout ?
  • What command tracks the revisions in git ?
  • Home
  • Angular JS
  • C Sharp
  • DevOps
  • June 2020
  • April 2020
  • February 2020
  • July 2019
  • June 2019
  • May 2019
  • January 2019
  • November 2018
  • October 2018
  • September 2018
  • July 2018
  • March 2018
  • February 2018
2018 © Prashant's Blog