Friday, January 28, 2011

dos2unix missing in Ubuntu 10.04

"dos2unix" is an important tool for developer especially when they need to deal with windows files. This tool converts dos format text file to unix format. However, when you typed "dos2unix", you should get this error under Ubuntu 10.04

dos2unix: command not found


To install dos2unix package back:
$ sudo aptitude install tofrodos


If you want "dos2unix" type "fromdos" and if you want "unix2dos", type "todos".
Alternatively, you can create symbolic links for your convenience:

Go to /usr/bin:

$ sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix
$ sudo ln -s /usr/bin/todos /usr/bin/unix2dos

No comments:

Post a Comment