Is the need for a text editor in an OS for humans or the system?

0

From Wikipedia:

Text editors are provided with operating systems and software development packages, and can be used to change configuration files, documentation files and programming language source code.

From Wikipedia again:

Richard Stallman founded the GNU project in September 1983 with an aim to create a free GNU operating system. Initially the components required for kernel and development were written: editors, shell, compiler and all the others

From these quotes, it seems that a text editor is required in an OS.

When I used Windows, there were only a few occasions that I had to actual edit any system files myself, and I would have to believe that the average user never ends up opening a text editor to edit system files.

In Unix/Linux, and maybe Windows, you can edit a text, such as appending, file using commands without even opening a text editor, so a editor would not even be necessary. I'm not sure if you can put text in the middle of a file, so perhaps that's where a editor would come in place.

Is it the operating system that uses the text editor in the background for system uses? So, whenever a file needs to be changed, the OS will in the background invoke something such as$emacs someFile and then edit it, without us seeing, if there is some way to hide it.

Update: Are the downvotes because it's a very obvious answer, or because the question is inappropriate?

Abdul

Posted 2015-07-13T14:00:06.293

Reputation: 121

Question was closed 2015-07-13T22:58:15.517

1I didn't downvote but I would expect that the votes are because the question is not a good fit for superuser. Any answers will be primarily opinion based and would lead to long protracted discussions rather than one clear best answer. – EBGreen – 2015-07-13T14:06:40.427

@BigChris That is why I asked, as the quotes made it seem necessary, but in you rarely see standard Windows/OSX users ever edit system files. – Abdul – 2015-07-13T14:08:20.457

@EBGreen Isn't this question straight forward though? It would either be system or human. BigChris's comment answered it with system, as he said the system doesn't need an editor. – Abdul – 2015-07-13T14:11:45.263

1Humans and software use the text editors. Note that on Windows, most applications use installers to write data to the windows registery, and store their configuration files per user, because windows is mostly for end users. Linux does not have a central registery, and is commonly used as a server, so applications and services are configured in Text documents that are global to the server (eg configurate is per server, not per user). Either way, having a text editor is one of the earliest requirements computers ever had, and as a result, every modern os implements one or more. – Frank Thomas – 2015-07-13T14:19:30.590

@FrankThomas Chris answered my question, and you explained it further. Thanks. – Abdul – 2015-07-13T14:24:48.440

So Chris deleted his answer – barlop – 2015-07-13T14:41:48.097

@barlop He essentially said that the system doesn't need an editor to edit a file. – Abdul – 2015-07-13T14:43:25.737

@Abdul yes that's right. Stallman is very eccentric "philosophical" person.. he was calling GNU an operating system when it was just software some no kernel, because he was going to write a kernel. It's a bit like if you write some software packages which you call XYZ and you say XYZ is an operating system you just haven't written the operating system part yet. He wanted to calll it GNU but people knew it as Linux so he compromised as Gnu/Linux which also means in his mind, GNU OS with the linux kernel. He has since written Herd (the kernel he intended) so that would be GNU/Herd – barlop – 2015-07-13T14:44:44.607

@barlop So the GNU OS project basically had all the components an OS needs, which I'm reading about currently, which included a text editor, but it didn't have the heart, the kernel. – Abdul – 2015-07-13T14:47:25.080

@Abdul I don't think that technically an OS necessarily needs any of the things the GNU OS project had. Linux existed without it before GNU found Linux. Though it'd be a nuicance to use without them. The OS is really the kernel! So Stallman's definition was/is very eccentric. Everything other than the kernel is extra stuff. Everybody thought of the OS as Linux and still think of the OS as Linux but with some GNU utilities. Some(not stallman) may look at GNU/Linux as GNU software suite with Linux Kernel. – barlop – 2015-07-13T14:47:59.717

Sorry I deleted my comment; I re-read the question and saw that it related to system files - some of which are editable, some are not (binary/compiled) - I misunderstood the context. The question is about text editors, so I'll assume system configuration files that can be edited by users. An editor is clearly for human use as it provides a means of a user creating, seeing and/or editing a file's contents. A system would not invoke the editor to then use the file - this would be difficult and very inefficient as the system could simply use the file contents directly from storage. – Kinnectus – 2015-07-13T14:52:06.167

@BigChris well, indeed, computer programs don't use text editors to edit files. I don't think the OP was saying they did. – barlop – 2015-07-13T14:53:34.713

@barlop I did not think they did, but I was unsure, due to the emphasis the 2 quotes I provided seemed to put on text editors, yet I rarely see humans use the text editor provided for essential things on Windows. So this made me think if humans don't use it, then it must be the system. However, FrankThomas' answer differentiated between the need in Windows and Unix/Linux – Abdul – 2015-07-13T14:57:52.393

You seriously have rarely seen humans use the text editor provided for essential things on windows.. What humans have you been watching? Your grandmother? Chimps in the zoo? It's used by technical people on windows all the time, and of course on *nix by anybody that knows how to use a command line .. Even on Windows by people that don't even know how to use a command line. – barlop – 2015-07-13T14:59:58.603

I suppose it might be less common on Windows than it was, because you no longer have boot.ini editable..Now that may be partly edited with clicking special buttons that make the edits. And prior to that you used to have autoexec.bat and config.sys in DOS and of course windows doesn't have that. An essential OS file, yeah humans use a text editor. There are still many things though. Editing the HOSTS file for example. – barlop – 2015-07-13T15:02:28.467

@barlop Let me clarify my comment; I have rarely seen non-technical people, who are the majority, ever use the text editor to edit essential files. That is why I was wondering how important the text editor is...to Windows. – Abdul – 2015-07-13T15:03:57.783

@Abdul well if technical people use something and non technical people don't then if anything, it should tell you that it's important. If the system has a serious problem then who is going to look at it and deal with the essential files. The technical people obviously. Do you think the technical people do things of no important to the computer and the people that do the important essential stuff for the computer to function, are graphic artists? – barlop – 2015-07-13T15:05:36.167

Answers

0

Microsoft, starting from Windows95 put OS configurations on the Registry. It is not a text file. It's a database in one or more binary files.

Windows users have a lot of graphical tools that let them modify registry keys without using text editors.

It is not a requirement for a Windows application to use Windows Registry, so you can find applications that use .ini files (text files) to store the configuration.

For Unix/Linux users the text editor is more useful, besides the OS uses text files to boot, to control auto start of applications, to manage the firewall,etc.

jcbermu

Posted 2015-07-13T14:00:06.293

Reputation: 15 868

1You still have the hosts file. And XP still had boot.ini – barlop – 2015-07-13T15:09:51.280

It should be noted that the boot.ini is text so it can be edited offline as needed, and so that the bootsec does not need to have sufficient code to load the registery that early in boot (since part of its configure implies the location of the hive files). – Frank Thomas – 2015-07-13T15:14:27.650

@jcbermu Do apps that come preinstalled in Windows use the registry more often, and likewise, do apps installed by the user typically use .ini files for configurations? – Abdul – 2015-07-13T15:19:16.177

@Abdul There are not specific rules. However the trend is to use registry because it let the administrators to make remote configurations, updates, uninstalls, etc. – jcbermu – 2015-07-13T15:32:49.737

You write " the trend is to use registry because it let the administrators to make remote configurations, updates, uninstalls" <--- can you explain why they couldn't do that before (which is what your comment is suggestive of). – barlop – 2015-07-13T16:00:20.953

The registry is also faster than a text file, but Windows does still use some text files (host file, IIS's web.config). Linux also blurs the line Windows created of text editor and older tools with things like gedit / nano. – Austin T French – 2015-07-13T18:00:48.187

@barlop If you have a scattered bunch of INI files, one for each application is very difficult for the administrator to keep them in the state he wants. When everything is inside the registry is easy to make scripts on Remote administration tools that check the state of applications on every boot and do updates, upgrades etc. – jcbermu – 2015-07-14T08:22:43.740

@jcbermu do you have a link on that subject so I can see what you mean? – barlop – 2015-07-14T09:02:45.853

@barlop This will give you an insight https://www.microsoft.com/en-us/server-cloud/products/system-center-2012-r2-configuration-manager/

– jcbermu – 2015-07-14T09:42:36.077