Fresh install surprise

I just completed a fresh install of FBSD-14 to a VM, and logged in as root. Not an upgrade from 13.2.
Nothing extra installed. OS remaining in virgin state.
Default shell is sh. All good, but noticed the following default for root :

Code:
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin

It seems there's no directories created for /usr/local/sbin or /usr/local/bin
In fact, /usr/local is a thoroughly empty directory.
Is this deliberate and working as intended for a fresh install, or have I done somethings wrong already ?
 
Last edited by a moderator:
That is completely normal. Those are there so that when you install software, you can use it immediately without re-configuring your shell. Software is typically installed in /usr/local.
 
'man 7 hier' does a pretty good job of describing the uses of directories.

Code:
                local/         local executables, libraries, etc.  Also used
                               as the default destination for the ports(7)
                               framework.  Within local/, the general layout
                               sketched out by hier for /usr should be used.
                               Exceptions are the ports documentation (in
                               share/doc/<port>/), and /usr/local/etc (mimics
                               /etc).

I'd mention its use by ports (and also mention pkgs) first, and _then_ say it's sometimes also used for other non-base things. Saying /usr/local/ is for local things isn't really helpful.
 
Back
Top