Fedora Linux Support Community & Resources Center
  #1  
Old 2nd May 2009, 08:05 AM
creeping death's Avatar
creeping death Offline
Registered User
 
Join Date: Feb 2008
Posts: 655
Unix vs DOS

I know that unix commands and shell-scripts are very smart...a single command allows a user to do a task that would probably require him to open 5 windows and click 50 times in any GUI environment...

what i m curious about is how smart is(was) MS-DOS...does DOS have the capability to make ingenious pipes and brilliant scripts...

my experience with Linux(UNIX) commands is most fulfilling mostly because of the inventiveness of Unix commands...a very complicated task can be performed by the collaboration of commands that perform rather trivial tasks individually...

So my question is are MS-DOS commands and utilities as smart as UNIX?
__________________
c_d -- superfluously plenteous yet indolently otiose
Reply With Quote
  #2  
Old 2nd May 2009, 11:23 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
No. The DOS CLI was very basic. If you've ever seen the dos prompt on older Win systems you have a good idea. It had the concept of file.extension built in and permitted a crummy version of wildcards '*'. No regular expressions, Yes a form of shell varaibles but no good way to manipulate the strings or execute them.

No pipes but some very clever scripting could use intermediate files.

FWIW CP/M had a very similar but IMO better CLI.

Last edited by stevea; 2nd May 2009 at 11:34 AM.
Reply With Quote
  #3  
Old 2nd May 2009, 11:27 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
Good old batch files. Haven't written one of them in years
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #4  
Old 2nd May 2009, 11:52 AM
creeping death's Avatar
creeping death Offline
Registered User
 
Join Date: Feb 2008
Posts: 655
i thought so too...DOS commands arnt as flexible as UNIX commands...which brings me to my actual question that i meant to ask...

UNIX was re-written in C in 1974...and DOS family of OS came in the late 1970s/early 80s ... so why was DOS even allowed to dominate the microcomputer market when UNIX was so much better and when they had so many versions of Unix available back then?
__________________
c_d -- superfluously plenteous yet indolently otiose

Last edited by creeping death; 2nd May 2009 at 11:56 AM.
Reply With Quote
  #5  
Old 2nd May 2009, 12:16 PM
stefan1975's Avatar
stefan1975 Offline
"Stefan the converted" -- forum Macintosh® Glee Club leader
 
Join Date: May 2007
Location: 127.0.0.1
Age: 38
Posts: 1,247
well in all truth microsoft powershell (2) is pretty nifty as well, it is DOS evolved and then some ... one might even think that it is at least as good (dare i say better?) then bash ..... in a windows environment of course....
__________________
"$ su - bofh"
OS: Mac OSX Snow Leopard (x64 by default), W7_Enterprise_X64, F12_x64_KDE
Hardware: late 2009 Macbook 13", MSI Wind 10"
Browser: Opera 10.10, Safari 4
Registered linux user #459910
Reply With Quote
  #6  
Old 2nd May 2009, 12:21 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922
Quote:
Originally Posted by creeping death View Post
... so why was DOS even allowed to dominate the microcomputer market when UNIX was so much better and when they had so many versions of Unix available back then?
Because IBM chose DOS as operating system for the PC.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #7  
Old 2nd May 2009, 01:15 PM
creeping death's Avatar
creeping death Offline
Registered User
 
Join Date: Feb 2008
Posts: 655
yeah but why did ibm choose that...what factors made them make that choice?

@stefan_1967 how are powershell utilities better than UNIX utilities? anyways powershell was released in 2006...unix is much more mature...though cryptic
and moreover the powershell dev team themselves declare that their main focus was not to develop a CLI but an automation tool...http://blogs.msdn.com/powershell/arc...d-wpf-wtf.aspx

and if UNIX was better than DOS, then why was the microcomputer line of OS allowed devolved instead of allowing it to flourish and evolve with UNIX?
__________________
c_d -- superfluously plenteous yet indolently otiose

Last edited by creeping death; 2nd May 2009 at 01:42 PM. Reason: i was hasty...
Reply With Quote
  #8  
Old 2nd May 2009, 02:49 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Why? Well, Bill Gates had a business background and probably did a better job of marketing. There's histories all over the web, I'd do a bit of a search, trying to avoid the knne-jerk pro or anti-MS viewpoints.

What people do forget is that one reason Windows reached its position of dominance, before it was in a position to use its power, was because they were more intelligent about marketing than many others.

If Unix was (I'm pulling these numbers out of the air, I have no memory of what the prices were then) $10,000 and DOS was $500, there was obviously more room for profit with DOS.



Keep in mind that back then, Unix was extremely expensive.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #9  
Old 2nd May 2009, 03:08 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Unix was designed with modularity in mind. The shell was designed to be some kind of "glue" that could make various specific programs work together. On the other hand the DOS command interpreter heavily relied on built-in functions of the command interpreter.

Simple Unix paradigms such as pipelining and filters was absent in DOS because DOS didn't support multitasking or concurrency. On Unix you can open a pipe connecting two processes together but on DOS you couldn't have two processes working concurrently at the same time.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #10  
Old 2nd May 2009, 03:09 PM
sonoran's Avatar
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,100
I don't think the original IBM PC was capable of running Unix. I haven't checked this, but I believe Unix always required multitasking and networking, which is why it was on Vaxes and university networks.

Wasn't that Linus' idea - a version of Unix he could run at home?

You beat me by a minute there, Aleph - always knew I should have learned to touchtype

Last edited by sonoran; 2nd May 2009 at 03:10 PM. Reason: slow typing
Reply With Quote
Reply

Tags
dos, unix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to ssh to unix box sringl Using Fedora 2 2nd July 2008 02:22 PM
PHP and Unix Administration Quadcore Programming & Packaging 1 11th September 2007 06:39 PM
Any UNIX gurus here? tonyingesson Servers & Networking 1 12th January 2006 03:58 PM
Unix Links tajidinabd Linux Chat 2 4th January 2006 12:14 AM
Help me drop SCO UNIX! The_Jaymz Using Fedora 3 6th November 2005 07:09 AM


Current GMT-time: 21:32 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat