Install Mac2unix On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Mac2unix On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

mac2unix

convert text file line endings between CRLF and LF

Maintainer: Jari Aalto



Section: text

Install mac2unix

  • Debian apt-get install dos2unix Click to copy
  • Ubuntu apt-get install dos2unix Click to copy
  • Alpine OS apk add dos2unix Click to copy
  • Arch Linux pacman -S dos2unix Click to copy
  • Kali Linux apt-get install dos2unix Click to copy
  • CentOS yum install dos2unix Click to copy
  • Fedora dnf install dos2unix Click to copy
  • Raspbian apt-get install dos2unix Click to copy
  • macOS brew install dos2unix Click to copy

dos2unix

convert text file line endings between CRLF and LF

This package contains utilities dos2unix, unix2dos, mac2unix, unix2mac to convert the line endings of text files between UNIX (LF), DOS (CRLF) and Mac (CR) formats. Text files under Windows and DOS typically have two ASCII characters at the end of each line: CR (carriage return) followed by LF (line feed). Older Macs used just CR, while UNIX uses just LF. While most modern editors can read all these formats, there may still be a need to convert files between them. This is the classic utility developed in 1989.

Install the latest version of mac2unix in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the mac2unix just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of mac2unix from the respository and install it in your computer/server.