Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey may be i am asking you very simple question, but i have doubt regarding the difference between root directory and init directory. Its not homework please.
Root can be many things: a user, a group, a filesystem (and even here, you can mean either / or /root, which are two things, and can be on separate fs's as well), or simply the name of a directory.
Init is the process which has PID 1, parent of the rest of processes. The term "init" can be used sometimes.
And / and /root are directories, of course. You didn't specify
which one you meant.
They can be both directories and fs's. You will hear a lot of times about the root fs, which can be used to refer to both of them, though the most correct interpretation would be to talk about the root fs when you mean /, and the root dir when you mean /root, I guess, even if /root can be a separate fs itself.
Quote:
And there's no directory called init on any of the linux machines
I've had access to so far ...
Generically speaking, "root" refers to user-id #0, which is traditionally an "all-powerful" user. Processes running with this effective user-id are also "all-powerful."
In actual "hardened" Linux implementations, usually no processes actually have "all" powers, but those processes which have extraordinary powers are still referred-to as being "rootly."
"init," on the other hand, is a process that is manually constructed during the kernel-initialization sequence. It then becomes the first process that runs, and which is responsible for starting all the others. Also, when a process is "orphaned" by its parent, init is the process that reaps the orphan when it finally dies.
The "init" process is not allowed to die. If it does, for any reason at all, the kernel will panic with a rather poorly-worded message ... "attempted to kill init."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.