🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #623818

Re: First use of /sbin in Unix?

#623818
From: Jorgen Grahn
Date: Thu, 07 Jun 2018 12:18
50 lines
3481 bytes
On Wed, 2018-06-06, Scott Lurndal wrote:
> Jorgen Grahn <grahn...@snipabacken.se> writes:
>>On Wed, 2018-06-06, Grant Taylor wrote:
>>> On 06/06/2018 07:13 AM, Kerr-Mudd,John wrote:
>>>> Having come from the "simpler" DOS world of total control, with maybe 
>>>> just a path to c:\utils, I found it a puzzle that there were so many 
>>>> places (yet only those ones!) to put executables under linux.
>>
>>It's a bit puzzling, but not a problem in practice.
>>
>>> You can put executables in a LOT of places.  You just need to choose 
>>> somewhere that's already in the PATH environment variable, or modify it 
>>> to your liking.
>>
>>I'm happy I don't see a lot of software installed under /opt anymore.
>>That was a pain: often as a user I had to add /opt/$foo/bin to my
>>$PATH, for each piece of software $foo I was interested in.  And quite
>>often such software needed other environment variables like $FOO_PATH
>>too, or it would malfunction.
>>
>>There's also the issue with documentation.  If a piece of software is
>>in your path, but the man command cannot find the manual page, you're
>>in an awkward situation.  man(1) on Linux nowadays has the option to
>>search for man pages in $foo/man/ if $foo/bin is in the $PATH, but I
>>think that's a recent improvement.
>
> All man utilities have supported $MANPATH since basically forever.

Yes, but that was not what I was talking about -- I was talking about
when man(1) also reads $PATH.

>>> I personally have ~/bin first in my path.
>>
>>It's unclear to me if that's standardized, but yes, I make sure I have
>>that in my $PATH, too.  It's where all scripts go that are only
>>interesting to me.
>
> It only needs to be at the _front_ of $PATH if you intend to
> override utilities of the same name that exist under earlier
> entries in $PATH.

I was going to comment on that, but didn't bother.  I put ~/bin
last in my path; seems to me overriding a standard utility would
almost always be the wrong solution to a problem.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .     .
\X/     snipabacken.se>   O  o   .
Technical Details
Message-ID: <slrnphi8k3.31ka.grahn+nntp@frailea.sa.invalid>
Path: mbox-mo1.pugleaf.net!n13-v6ni13794wmc.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <pf6emc$3h2$1@dont-email.me> <ZzzRC.190248$T14.113297@fx44.iad> <pf7ieq$40p$1@tncsrv09.home.tnetconsulting.net> <20180606103538.7eddd3774f5429f1abd54fc6@eircom.net> <XnsA8F990C4CB379admin127001@85.214.115.223> <pf8vvb$oko$1@tncsrv09.home.tnetconsulting.net> <slrnphgdv7.31ka.grahn+nntp@frailea.sa.invalid> <sfXRC.288871$yc1.96733@fx40.iad>

Show Full Headers
Complete Article Headers
X-Received: by 2002:adf:fdcf:: with SMTP id i15-v6mr157920wrs.5.1528373892649;        Thu, 07 Jun 2018 05:18:12 -0700 (PDT)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 2002:a7b:c04d:: with SMTP id u13-v6ls319044wmc.2.canary-gmail; Thu, 07 Jun 2018 05:18:12 -0700 (PDT)
X-Received: by 2002:a1c:9993:: with SMTP id b141-v6mr173401wme.20.1528373891983;        Thu, 07 Jun 2018 05:18:11 -0700 (PDT)
MIME-Version: 1.0
Path: mbox-mo1.pugleaf.net!n13-v6ni13794wmc.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Jorgen Grahn <grahn...@snipabacken.se>
Newsgroups: alt.folklore.computers
Subject: Re: First use of /sbin in Unix?
Date: 7 Jun 2018 12:18:11 GMT
Lines: 50
Message-ID: <slrnphi8k3.31ka.grahn+nntp@frailea.sa.invalid>
References: <pf6emc$3h2$1@dont-email.me> <ZzzRC.190248$T14.113297@fx44.iad> <pf7ieq$40p$1@tncsrv09.home.tnetconsulting.net> <20180606103538.7eddd3774f5429f1abd54fc6@eircom.net> <XnsA8F990C4CB379admin127001@85.214.115.223> <pf8vvb$oko$1@tncsrv09.home.tnetconsulting.net> <slrnphgdv7.31ka.grahn+nntp@frailea.sa.invalid> <sfXRC.288871$yc1.96733@fx40.iad>
X-Trace: individual.net l7+DMWyKegWI8GyacAqqVQugTZi0dkqAyNOqiY2QDWfVevDbi7
Cancel-Lock: sha1:v8rCqwmholc2brua9YbEVohFGS0=
User-Agent: slrn/1.0.2 (OpenBSD)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit