Windows and Unix-based systems (like Ubuntu) handle "new lines" differently:

: Uses Carriage Return + Line Feed ( \r\n or CRLF ). Linux (Unix) : Uses only Line Feed ( \n or LF ).

If you try to run a script or configuration file on Ubuntu that was saved in Windows, it may fail because the hidden \r character confuses Linux interpreters. Using dos2unix removes these hidden characters, making the file readable for Ubuntu. Essential Commands and Usage

Once installed, the package provides two main utilities: dos2unix and unix2dos . : dos2unix filename.txt Use code with caution. Convert multiple files : dos2unix file1.sh file2.py Use code with caution.

: Run the following command to download and install dos2unix. sudo apt install dos2unix Use code with caution.

You can install the tool directly from the official repositories using your terminal.