I'am trying to learn about the filesystem hierarchy but I can't get my mind wrapped around some of the concepts.
/mnt: What do I put here? In theory, is a place for mounting temporary file systems so, where do I mount the 3 extra hard-drives that are in my computer?
/usr: here is where all the programs that are not a part of the OS go (Thunderbird, Gimp,...) so, why is
useradd
command in /usr/sbin? Isn't user management an intrinsic part of the OS?if all the software that is not part of the OS is intalled in /usr (/usr/bin, /usr/lib,...), why the configuration files are in /etc? shouldn't they be in /usr/etc/?
/opt: What's the difference between /opt and /usr?
EDIT:
I do not see, in the post indicated, the answers to:
- where do I mount the 3 extra hard-drives that are in my computer?
why isBecasue in /bin only goes what's necessary for starting up the system.useradd
command in /usr/sbin?- why the configuration files are in /etc? shouldn't they be in /usr/etc/?
What's the difference between /opt and /usr?I've already found the answer to this one. /opt is for software that is not part of the distro nor the official repository.
useradd
is in /usr/sbin because it is used mainly by root, but it is not required for system startup. – peterh Sep 21 '18 at 17:46useradd
. I've tought that all of OS commands were in /bin when actually they are only the minimun amount of commands in order to boot the system. – potato Sep 21 '18 at 17:56useradd
was called as part of the boot process (well, except some docker container initialization). I've seen only very rarely as a non-root called useradd (typically, even they did withsudo
). – peterh Sep 21 '18 at 17:59