Related Items  

Linux Consulting  

Login or Register  

If you wish to contribute an article, please login or register.

dos2unix missing (Ubuntu 10.04)

PrintE-mail

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)
huh
31 Thursday, 19 July 2012 15:31
roger
Why did they rename this? Seriously what the...
Thanks!!
30 Thursday, 07 June 2012 21:25
Jeremy
Thanks so much
thanks
29 Wednesday, 16 May 2012 14:34
AntiBuntu
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
Thanks
27 Tuesday, 06 March 2012 06:14
Cos
Very nice!
Good work:)!
Thanks
26 Saturday, 28 January 2012 00:16
Holger
wonderfull...
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
Oxbane
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
Pawel
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..
Regards
this change has annoyed me too but...
21 Monday, 08 August 2011 06:38
Joe
...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
skull
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!
Ass
18 Friday, 25 February 2011 16:07
Me
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 "sAsInSea.idiotdevelopers.org" or "requestTimedOut.buttmunchers.com". 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
unix?
16 Thursday, 20 January 2011 16:40
jpd
should we remove all mention of unix from our computers?
why
15 Thursday, 20 January 2011 16:38
jpd
why do they "fix" things like this
Thanks
14 Monday, 20 December 2010 23:40
Grisha
Thank You very much guy! This is very helpful for me so I has solve my problem :-)
thanks
13 Monday, 20 December 2010 04:08
Shane
Good job
dos2unix missing (Ubuntu 10.04)
12 Thursday, 16 December 2010 13:36
anonymous
Thanks for the tip!!
Thanks
11 Thursday, 16 December 2010 10:42
Sab
Thanks for the tip !!!!
Thanks
10 Wednesday, 13 October 2010 04:22
Pim van Nierop
Like all the others. THANKS!
yeah thanks
9 Saturday, 02 October 2010 16:02
decora
thanks man.
Thanks
8 Wednesday, 29 September 2010 03:03
Eddy Vanderlinden
Thanks ! This helped me !
Thanks!
7 Monday, 27 September 2010 20:23
Kordzik
Saved me some more unnecessary frustration with my Lucid
Thanks
6 Monday, 20 September 2010 19:01
scr
Thanks you for your post!
Thanks
5 Monday, 13 September 2010 12:07
Paulo Alves
Thanks a lot!!
Thanks
4 Monday, 13 September 2010 02:19
J
Thanks for the tip. Change for the sake of change - again! We love it! Haha.
thanks
3 Monday, 06 September 2010 07:20
chris
thanks for the info! you would thing that something that small would be included in the install of a full system...
Thanks
2 Monday, 23 August 2010 01:39
Tarquinn
Thanks for hint!
Thanks
1 Tuesday, 27 July 2010 05:47
Marc
Great tipp, thanks a lot!

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
   
Copyright © 1999 - 2014 Virtual Helpme | a | Original Template: Allrounder