Related Items  

Linux and Windows IT Support  


Windows, Apple and Linux IT support and services.

For Software and Web Development.

dos2unix missing (Ubuntu 10.04)


Yet another "feature" from the developers of ubuntu to simplify life. "dos2unix" and "unix2dos" are missing in version 10.04 (Lucid).

First of all, install dos2unix package:

sudo aptitude install tofrodos

Then if you want "dos2unix" type "fromdos" and if you want "unix2dos", type "todos". If you have a habit of typing in the old commands, its best to create links.

Go to /usr/bin:

username@linuxbox:/usr/bin# sudo ln -s fromdos dos2unix
username@linuxbox:/usr/bin# sudo ln -s todos unix2dos

Comments (31)
31 Thursday, 19 July 2012 15:31
Why did they rename this? Seriously what the...
30 Thursday, 07 June 2012 21:25
Thanks so much
29 Wednesday, 16 May 2012 14:34
thanks.. rly.. hsaved my life.
better solution
28 Wednesday, 07 March 2012 04:12
Thomas C.
more easy and dos not need root privilages is to create a file ~/.bash_aliases with follow content:

alias dos2unix=fromdos
alias unix2dos=todos
27 Tuesday, 06 March 2012 06:14
Very nice!
Good work:)!
26 Saturday, 28 January 2012 00:16
Human psychology
25 Tuesday, 17 January 2012 18:07
Rick Maverick
Well, I know I'm late to fest but I have to add my 2C. Imagine how frustrating is to work on maintaining what other have done long time ago. So guess, what if I put my name on an old thing. Exciting !!! No?
Ubuntu is missing somebody like Linus with an ironfist to maintain little guys in line. :)
No help for me, alas...
24 Saturday, 31 December 2011 00:29
Gan Starling
I was trying to install makehuman-nightly build but can't because it DEPENDS on the PACKAGE "dos2unix" so that "apt-get" fails even after applying this patch.

Glad it worked for some, though. As for me, I must seek elsewhere.
Thanks for the poke in the eye...
23 Sunday, 28 August 2011 07:09
One trouble newbies face is hearing "you should KNOW that" a lot. We study and practice to reduce the frequency of hearing it, but suspect that--no matter how much we learn--the unix masters are "changing the game" so we'll never catch up.

Thanks for demonstrating our suspicion was right.
Dont cry so much,
22 Friday, 12 August 2011 00:20
u always can make an alias in Your .bashrc just for convenience:
alias dos2unix='fromdos'
alias unix2dos='todos'
and U do not have to change Your habits..
this change has annoyed me too but...
21 Monday, 08 August 2011 06:38
...but it's the "fixing stuff which already works" which is part of the open source culture -- and ultimately leads to innovation and great new features. So try and have a little patience with this kind of thing, even though it can be trying. :)
bump WTF
20 Friday, 29 July 2011 04:10
WTF do you guys think !!

you have a great kernel, and you guys are just trashing the reputation of open source software by making dumb and unmanaged decisions when you build distributions

you think you want to name a program differently, create an alias if you really need to, but please leave the old ones properly named.

i'm more used to freebssd than linux. believe me, sysadmin under linux is an endless pain when it comes to portability, just because of such foolish decisions, renaming thing, changing flags, just because you think you know better.

it is easier to build a script portable on any solaris and any BSD than to make the same one between two versions of the same linux distribution, not to mention the exact same version on different architectures or even the same version installed a week after on the same machine !!
Thank you so much
19 Sunday, 10 April 2011 13:27
Wolfgang Bein
It's back to normal in Maverick, but I am using the long term version no in April 2011. Thanks a million!
18 Friday, 25 February 2011 16:07
What a completely asinine move.
Oh lord..
17 Monday, 31 January 2011 18:30
Mr. Hahn
WTF was wrong with the dos2unix and unix2dos nomenclature? There are plenty of other programs with "2" in the filename.. seemed conventional. What if someone has a "to-do" list that they want to name "todos"? Jesus, do you developers ever think? This kind of jack-assery goes right along with naming your server "" or "". It was great the old way.. for YEARS. And now it sucks. Congratulations for making me 99.999% less productive on the simple task of converting a file from dos to unix.

Up yours truly,
The Great Mr. Hahn
16 Thursday, 20 January 2011 16:40
should we remove all mention of unix from our computers?
15 Thursday, 20 January 2011 16:38
why do they "fix" things like this
14 Monday, 20 December 2010 23:40
Thank You very much guy! This is very helpful for me so I has solve my problem :-)
13 Monday, 20 December 2010 04:08
Good job
dos2unix missing (Ubuntu 10.04)
12 Thursday, 16 December 2010 13:36
Thanks for the tip!!
11 Thursday, 16 December 2010 10:42
Thanks for the tip !!!!
10 Wednesday, 13 October 2010 04:22
Pim van Nierop
Like all the others. THANKS!
yeah thanks
9 Saturday, 02 October 2010 16:02
thanks man.
8 Wednesday, 29 September 2010 03:03
Eddy Vanderlinden
Thanks ! This helped me !
7 Monday, 27 September 2010 20:23
Saved me some more unnecessary frustration with my Lucid
6 Monday, 20 September 2010 19:01
Thanks you for your post!
5 Monday, 13 September 2010 12:07
Paulo Alves
Thanks a lot!!
4 Monday, 13 September 2010 02:19
Thanks for the tip. Change for the sake of change - again! We love it! Haha.
3 Monday, 06 September 2010 07:20
thanks for the info! you would thing that something that small would be included in the install of a full system...
2 Monday, 23 August 2010 01:39
Thanks for hint!
1 Tuesday, 27 July 2010 05:47
Great tipp, thanks a lot!

Add your comment

Your name:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
Copyright © 1999 - 2023 Virtual Helpme | IT Services Catered to Your Business | Original Template: Allrounder