For some reason, the terminal is not recognizing (not finding) unix commands (ifconfig, locate, etc). Can someone please explain how to fix this?
“gcc” is also not recognized.
-----BEGIN PGP SIGNED MESSAGE-----
If ‘gcc’ is installed it should work for any old user by default, but
‘ifconfig’ usually requires a $PATH environment variable that is setup
for /sbin, which does not include normal old users. Try using the full
path, or else become ‘root’ to do it:
My box does not seem to have locate enabled, but is there a reason you
need it? The ‘which’ command works for executables (for any user) and
‘whereis’ is also interesting and helpful at times. ‘gcc’ may just not
be installed… so be sure it is.
yast -i ‘gcc’ #to install ‘gcc’
> “gcc” is also not recognized.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
- lost09 [2008-10-12 23:06]:
> For some reason, the terminal is not recognizing (not finding) unix
> commands (ifconfig, locate, etc).
Ifconfig is only in the $PATH of root, and for locate, you probably
have to install the “findutils-locate” package.