Operating System - HP-UX
1851095 Members
2231 Online
104056 Solutions
New Discussion

Re: How to know where is located a command or script ...

 
Manuales
Super Advisor

How to know where is located a command or script ...

Hi ..
how can i know where is located a command, i meean, for shutdown sap, we have to be logon into the system as "sapuser" and after only we have to run the command "stopsap" .

i want to know where is located stopsap
i have searched this command into the server but i could not found the command ....
could it be a env command?

i run env command but it is not there declared ..

how can i know where is located "stopsap" command? i think that is a script ...

please let me know.
thanks.
3 REPLIES 3
Manuales
Super Advisor

Re: How to know where is located a command or script ...

Hi guys ..
i got it ...

i found the value into the file .cshrc

it was easy !!!!
thanks any way.
Regards.
Steven Schweda
Honored Contributor

Re: How to know where is located a command or script ...

Depending on your shell, you might try things
like:

type stopsap
where stopsap
which stopsap
Torsten.
Acclaimed Contributor

Re: How to know where is located a command or script ...

Other choices are (also depending on shell):

# whereis command
# whence command

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!