M
M
Michael2018-06-14 17:32:05
linux
Michael, 2018-06-14 17:32:05

Folder structure in linux?

Of course, such folders as home, var/log, etc are quite simple and clear. For example, in the manual there is a folder like "/var/spool - printer". And what, some virtual helmet is not worthy to have its own folder? Or the root user, his folder is an exception and is not in home.
Recently read about apt-get: remove vs purge. The second not only deletes, but also erases the configuration files... but not in the user folder. Or now I opened my home / user folder, and there are some logs, some configurations and caches. Well and what for it to the user in its folder ?
In my opinion, there should be only a few folders, among which is the folder of users, programs and settings (and program data). So that you can delete the program in "1 click" (command) or its data, or reset its settings.
The feeling that the structure is outdated by 20 years does not leave and is ideal for sawing some kind of android-type systems. Or other OS based on it. But for normal use, in my opinion, mobile OSes are ideal: there is an application, there is data, and there is the possibility of simple deletion.
There is also a problem of conflicts, which is better solved in mobile OS. For the sake of solving it on desktop OSes, they even came up with Docker - and this is a great tool. It's just a pity that this is actually just a crutch, because it is impossible to control the OS because of its randomness.
My question is a bit like "robbing cows", but oh well. Am I the only one who doesn't understand the folder structure in Linux?
UPD : It's cool that a lot of people expressed their opinion, so there will be a Toaster :)
So, point by point:

root is taken out to save the settings.

Yes, it is known. But exceptions complicate and we must strive to solve the problem differently.
Android all in one place and one file per program

Roughly speaking, yes. For the user. And what's under the hood is the tenth thing.
install Root Explorer

The question was about android:
ideal for sawing some kind of android type systems. Or other OS based on it.

It was convenient to write it on the basis of Linux and it was written on it. Naturally, the structure is the same.
configs/etc can be not only system, but also personal for each user. Therefore, they are stored in the hamster for each user

They can also be stored in /bin, /usr, /home, etc. All of this is low-level problem solving and should be omitted when using the OS.
Files Go by Google ... just after uninstalling programs

Nobody said that the android inside is perfect. It (like other mobile operating systems) is good on the outside. It has a simple application interface.
UPD 2 : Directories, directories, directories, directories, directories, directories, directories, directories, directories.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan Fedoseev, 2018-06-14
@martin74ua

man hier
go there first

S
Sergey Sakhno, 2018-06-14
@Punk_Joker

>> But for normal use, in my opinion, mobile OSes are ideal: there is an application, there is data and there is the possibility of simple deletion.
Isn't it the same on desktop Linux? Or do you think that Android has everything in one place and one file per program?

C
CityCat4, 2018-06-15
@CityCat4

But for normal use, in my opinion, mobile OSes are ideal.

Patstalom ... Is the
phone rooted? Not? Everything is clear, call the next one. If it's still rooted, install Root Explorer - and marvel at how much "garbage" the android has. It's just folded up so you can't see it.
If you don't understand it, it doesn't mean that nobody needs it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question