Find the path of a shell command
Michael F. Stemper
michael.stemper at gmail.com
Wed Oct 12 10:38:49 EDT 2022
On 12/10/2022 07.20, Chris Green wrote:
> jak <nospam at please.ty> wrote:
>> Il 12/10/2022 09:40, jkn ha scritto:
>>> On Wednesday, October 12, 2022 at 6:12:23 AM UTC+1, jak wrote:
>>>> I'm afraid you will have to look for the command in every path listed in
>>>> the PATH environment variable.
>>>
>>> erm, or try 'which rm' ?
>>
>> You might but if you don't know where the 'rm' command is, you will have
>> the same difficulty in using 'which' command. Do not you think?
> From a command prompt use the bash built-in 'command' :-
>
> command -v rm
>
> ... and rm will just about always be in /usr/bin.
On two different versions of Ubuntu, it's in /bin.
--
Michael F. Stemper
Psalm 94:3-6
More information about the Python-list
mailing list