r/AskComputerScience • u/xDeathCon • Nov 30 '23
Why is there no modern equivalent of DOS?
This question bugs me from time to time. I don't really get why there isn't some kind of user oriented OS that is primarily just a shell you spin up programs from. Obviously, I'm not forgetting the existence of GNU/Linux, but the solution of "Just use Linux" isn't quite satisfactory. In the same manner, stuff like Windows Server Core isn't the same as it's just a GUI command prompt window with the inability to open applications outside of itself.
I'm quite partial to DOS because I've spent the vast majority of my life using Windows and DOS. I prefer the sort of paradigm they go for over that of Linux based systems. I like the extra freedom you generally have in where things are installed to and how they're laid out, as well as just overall preferring that sort of style in a personal computing sense.
Linux systems are great for servers, but it's much less necessary to have something with the robust multi user model and permissions of Linux in a system only one or a few people will use. DOS basically just lets you do whatever you want with it, and that level of user control is very appealing.
A lot of times, I see people move over to Linux based systems not because they like it, but because it's the next best option over the bloated and ever-increasingly unusable Windows. While I don't entirely agree with all the premises put forth in it, this article made me wonder why we don't see things that just build upon the underlying Windows kernel. It's common for people to move onto Linux just to have to fight their programs and games to make them function on the platform.
Personally, I'd really like a system where I basically have a Windows cmd shell with some basic task switching to enable multitasking. It'd be great to be similar to DOS in having an autoexec.bat and config.sys to take full control over what you load and don't load. A large benefit of this is the ability to natively run Windows applications without needing the full extent of Windows.
Of course, the people who would enjoy this sort of thing are a minority in computing, but I always wonder why I see absolutely nothing about it. It would make sense that Microsoft may make this kind of thing impossible due to trying to protect their kernel, but things like Wine on Linux exist so I'd imagine it to be theoretically possible. I wouldn't be surprised if someone tried to do something like this before, but most things in the nature of similar stuff like FreeDOS are only focused on legacy programs rather than adapting the experience to modern systems.
18
u/sayzitlikeitis Nov 30 '23
Dos has evolved into Windows+powershell. You can run a server edition if you want a gui free experience, but it can’t be completely gui free like it used to be. Dos doesn’t keep kernel mode and user mode separated as well as it should and it died a quiet death with Windows Me.
4
u/ghjm MSCS, CS Pro (20+) Nov 30 '23 edited Nov 30 '23
Why don't people still install DOS? Because they want the same things you want: multi-tasking, GUI applications, etc. But if you want those things, you're necessarily going to have a lot more files and directories than a DOS system. It's just the nature of the beast.
Windows Core can, in fact, run Windows GUI apps - it just doesn't have a start menu, so you have to figure out how to launch the apps from the command line. It's not clear what the advantage really is - if you're going to be running GUI apps, then you're not saving anything significant by not having a start menu.
Modern embedded systems developers - the kinds of people who might use DOS because they're running on a tiny system that can't support anything bigger - tend to use something like buildroot.org to make a super-tiny Linux system. You can this almost as simple as a DOS system. Of course as soon as you decide you want to run GUI applications, you have to install xorg or Wayland and all its dependencies. But if you're OK with just a CLI, and if you use Busybox, you can make the system impressively small.
If you really want to run on a system with 512k RAM, then you need actual DOS. But in 2023 this means you're running on a wristwatch. (Or an Arduino or a Raspberry Pi Pico.) People don't generally run an OS of any kind on these kinds of systems any more. Instead, they cross-compile a single executable using an SDK that includes all the hardware drivers. So what actually runs on the device is literally just your program and nothing else. You could run DOS, but if you're planning to use the thing for general-purpose computing, spend the $15 and step up to a Pi Zero with Linux.
3
u/trinopoty Nov 30 '23
First let's set the premise that I understood so far:
I suppose the problem with that idea at the moment is that the windows system lacks support for loading up anything other than a GUI shell; at least as far as I'm aware. That's why even Windows Core drops you into what's essentially a GUI program masquerading as a text prompt.
I don't imagine it being too difficult to add back, or maybe it exists somewhere buried deep inside the kernel that we don't know about. I think the main limiting factor is market demand. Maybe microsoft just doesn't want to support such a mode given there's no demand for it.
Additionally, I imagine even if such a mode was exposed, as soon as you try to launch a GUI application, it would need to switch into the more standard GUI mode and load all the resources that are needed like graphics libraries. It's probably much simpler to just load the GUI by default and have the powershell/cmd application handle text commands. It definitely cuts down on the amount of code they'd have to write, test and maintain.
It's possible to do on Linux/Unix because text mode is the default mode for those systems. It's baked into the kernel and available for public use.
Now for some of my personal thoughts: I can't imagine why anyone would want to live with the garbage shell that is DOS. Good riddance that we don't have to deal with it. Bash is a million times better than DOS.
7
u/belaros Nov 30 '23
I didn’t get how Linux isn’t satisfactory. What is it lacking?
4
u/deong Nov 30 '23 edited Nov 30 '23
I mean, you mention it would be a minority of users who wanted this, but that's really underselling it. It's you -- literally one guy, I think. No one is building it because it's a big expensive project and you're the entire target market.
There is Linux, which by the nature of it's GUI systems just being userland programs let's you build your own workflow. But you don't want Linux. This type of thing is already a niche within a niche -- most people don't use Linux, and of those that do, most people aren't looking for the lack of a "normal" desktop. When you start subdividing even these tiny groups more and more, you just aren't left with anyone.
1
u/losfidante Aug 10 '24
About multitasking... There are ways you can achieve that on DOS variants. Check DESQView. There are others as well, but I don't remember them.
1
u/MoreResearchNeeded Mar 08 '25
I grew up using DOS/Windows 3.1 extensively, and I've thought along similar lines on and off over the years; essentially wishing for a multitasking, 64-bit version of DOS with full Windows compatibility. That was before doing a deep dive into Linux, which I'll be switching to (Mint distro) from Windows 10 in the very near future, because it has finally become viable to use as a daily driver (thanks in no small part to the development of SteamOS by Valve).
Learning about the history of Unix going back to its inception at Bell Labs in 1969 helped me understand the rationale for its paradigm, and the instructional material on Linux produced by No Starch Press is nothing short of phenomenal for anyone aspiring to become familiar with how it works from a practical standpoint.
While I do still think it would have been nice to have a modern DOS, I no longer pine for it now that I've experimented with Linux.
1
u/zebra_d Apr 01 '25 edited Jan 26 '26
This post was mass deleted and anonymized with Redact
label aware north alleged dinosaurs tan badge cow quickest instinctive
1
u/Top_Satisfaction6517 Dec 03 '23
the most importnat thing for OS is userbase. w/o large userbase, there will not be enough incentive to write apps for it, which will further decrease its userbase
we had a few "alternative" OSes back in 90s - BeOS, OS/2, Novell DOS, but they all are gone because they had not enough users. So, today, people don't even try to make another dead OS.
the best you can do now is make a stripped-down Linux version supporting Linux executables.
3
u/brianddk Dec 01 '23
I REALLY think you missed boat on Server-Core. What you describe is exactly, precisely and completely what server-core is. A bare minimum OS to run many applications that use the Win32 or .NET API. When I ran a test lab, I deployed server-core on all my nodes because:
If you want to run Win32 apps, the answer really is either Server-Core or Linux Wine.
1
u/[deleted] Dec 22 '24
Windows 11 has it. Search cmd
1
u/GBANGYTgaming098 Nov 30 '23
windows is the gui overlay over dos. Although nt based from xp onwwards
1
u/IllidanS4 May 24 '26
After spending a while in Alpine Linux, I am fully confident in stating that it can be the closest experience to what modern DOS would be: a very small and very lightweight installation that is easy to get going but also easy to customize. Unlike Arch or other bare-bones distributions, you get a working package straight from the beginning, but you can always install whichever components you need, paying only for what you use.
If it is the pure DOS experience you seek, install Midnight Commander and auto-login to root and you're done.
1
u/drew8311 Nov 30 '23
Answer 1: There is
Answer 2: Because we use modern things in modern times
0
u/eviltwintomboy Nov 30 '23
If YOU build it, they will come, but find out why you would need such a thing today. The older I get the more I realize a little imagination and a wheelbarrow of resources, and you can accomplish anything.
8
u/[deleted] Nov 30 '23
[removed] — view removed comment
1
u/[deleted] Feb 15 '25
[removed] — view removed comment