To , the easiest method is using your distribution's built-in package manager. This small but powerful utility converts plain text files between DOS (CRLF), Mac (CR), and Unix (LF) line ending formats. Quick Installation Commands
When you edit a script or text file on Windows and move it to Linux, you may see hidden ^M characters at the end of every line. This is because: Where is dos2unix in Ubuntu 20.04? download dos2unix for linux
: sudo dnf install dos2unix (or yum on older versions) Arch Linux : sudo pacman -S dos2unix openSUSE : sudo zypper install dos2unix Why You Need dos2unix To , the easiest method is using your
Run the command corresponding to your Linux distribution to download and install the package immediately: : sudo apt install dos2unix download dos2unix for linux