-4

What are the minimum number of programs that someone can use to edit files with the Linux kernel?

I mean reading a file from some storage device, changing it, and storing it. Maybe by specifying the address on the storage device to save the file (if that will reduce the number of programs used).

EDIT: just to clarify. I am asking mainly for a list of programs (and their dependencies if there are) that are needed to just edit text files nothing else.

1 Answers1

4

The minimum number of programs is one: a text-based text editor. If you don't want user accounts, networking, a graphical user interface, backups, the ability to upgrade the editor, or the generally ability to do anything but edit files, then you can boot the Linux kernel with an argument like init=/bin/nano, and have absolutely nothing else on the system — just the nano executable, the libraries it depends on, and whatever files you've been typing.

This is not a very useful operating system, but it meets your requirements. A general-purpose operating system has a lot more functionality, which requires a lot more programs.

See also What are the minimum root filesystem applications that are required to fully boot linux?