Click to See Complete Forum and Search --> : Build In commands not available?


exesyoung
09-22-2001, 07:29 PM
Hi people, I just installed Slakware 8.0 today. Installation went on smoothly, all was fine when I realize even as root, commands like "pid" "stat" "fstat" etc...returned "no such file or directory" How can that be? I always thought those are build in commands?

Choozo
09-22-2001, 07:35 PM
You should probaly check your $PATH variable, and make sure it contains /sbin, /usr/bin, (maybe /usr/sbin too) and /usr/local/bin

Cheers :)

xh3g
09-22-2001, 07:50 PM
in many distrobutions there is a difference between using "su" and "su -", in that the "root" you become has different $PATH variables. i'm not entirely sure why this is but it seems to make sense that certain commands don't always *need* to be accessable to root, as most of the time you only su to root for menial tasks like installing software. it can be a bit of a pita tho, imho, to realize that altho you did su to root, you still need to go that extra step of typing "su -" to gain the correct $PATH environmental variable.