Terminal

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-----
Hash: SHA1

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:

/sbin/ifconfig

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’

Good luck.

lost09 wrote:
> “gcc” is also not recognized.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI8rUg3s42bA80+9kRArbqAJ0Yh2b4Nuekh0CJ2y/+O7htnm8v2QCfbbEN
AFxxy44oSjk/wK3P1b0oj2M=
=eGgL
-----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.

Regards,
Bernhard