NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: can't find ping, route and ifconfig commands.
On Sun, 14 Jun 2020 at 16:49, Christos Zoulas <christos%astron.com@localhost> wrote:
>
> In article <CAEJNuHyoTSjVE2GCWTkVT51+q1iS0rhtR_WyY423N3G9a8smDQ%mail.gmail.com@localhost>,
> Ottavio Caruso <ottavio2006-usenet2012%yahoo.com@localhost> wrote:
> >On Fri, 12 Jun 2020 at 11:14, Johnny Billquist <bqt%update.uu.se@localhost> wrote:
> >
> >> However, most users by default don't have /sbin and /usr/sbin in their
> >> path, so you need to add that, or else run the programs using an
> >> explicit path.
> >>
> >
> >How's that possible?
> >
> >oc@NetBSD:/home/oc$ grep sbin /etc/skel/.profile
> >PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
> >PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
> >oc@NetBSD:/home/oc$ grep sbin /etc/skel/.cshrc
> >set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \
>
> The skeleton files are usually used to populate home directories.
> What does echo $PATH say for you or echo $path?
> What do your dot files contain? What is your shell?
I'm not the OP who reported the problem, but, as you ask:
oc@NetBSD:/home/oc$ grep -i path .profile
# Set the search path for programs.
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin
PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
export PATH
oc@NetBSD:/home/oc$ echo $PATH
/home/oc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2'
--
Ottavio Caruso
Home |
Main Index |
Thread Index |
Old Index