Re: hair-pulling path issue - program won't recognize path



On 2005-12-03, rlawton76 <rlawton76@xxxxxxxxx> wrote:

> "gs" won't. The file is executable, my path is good, I'm doing this
> from the root account, but I can't get "gs" to work. I tried moving
> the gs file to other directories in my path, and still it claims the
> file can't be found. A find -name gs doesn't turn up any other files
> than the one I have installed.

Did you try

whereis gs

did you try running the command with the full path

/usr/bin/gs

Check the directory in you path before /usr/bin/gs

to get your path, from the command line type

echo $PATH

> I'm at a loss for ideas on how to resolve this. My best guess is that
> there's some alias that's redirecting "gs" to run something else, but
> there's nothing I can see in my user profile, and I'm not sure where
> else to look. Does anyone have an idea on this?

from the command line run

[prompt %] alias

All aliases for that shell will be listed, even those you didn't create.

Aliases you do not create are generally in /etc/rc.d or whatever your distro
is using.

ken
.



Relevant Pages

  • Re: Automating alias saving in bash
    ... Deleting aliases permanently requires editing .aliases ... AND you can't use "a" again unless you first unalias within the shell, ... Command "unalias -a" is handy for big changes. ... but you can use the original command "alias" for listing aliases. ...
    (comp.os.linux.misc)
  • Re: a quick Q: what is the .alias for
    ... An alias is one word that is another word for the same thing. ... Aliases allow a string to be substituted for a word when it is used as ... commands (see SHELL BUILTIN COMMANDS below). ... simple command, if unquoted, is checked to see if it has an alias. ...
    (Debian-User)
  • Re: roots aliases
    ... >> When I'm in root, the command, 'alias', gives me a different output than ... Can I modify the root aliases? ...
    (alt.os.linux.suse)
  • Re: Philosophical which Guru question
    ... OK, so if you issue the 'which' command, it pipes the output of 'alias' ... The rest of the default aliases are pretty much useful variations of 'ls', ... If I make an alias like 'foo=' then wouldn't this kind of wipe out the value of the which command? ...
    (Fedora)
  • Re: Guide / Tools
    ... alias, this IMO should be avoided. ... Aliases are extremely handy. ... times the same command. ...
    (Debian-User)