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.



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?

christos



Home | Main Index | Thread Index | Old Index