Thnx @saifi. I will practice on them. Wished to mention..

Warm Regards,
Deepak

On Sat, 14 Aug 2021 at 19:46, SAIFI <[email protected]> wrote:

> On Sun, 8 Aug 2021, Deepak Kumar wrote:
>
> >
> > What is difference among 'which' 'Whereis' N 'find' commands?
> >
>
> instead of using 'whereis' by itself, try to use it with '-l' option
>
> whereis -l  signal.h
> whereis -l  ls
> whereis -l  whereis
>
> this has great educational value.
>
> 'which' on the other hand can locate only executables which show up in
> PATH environment variable.
>
> as to find.
>
> find is a fully generic search utility for all types of device files.
>
> find is a proper superset of 'which', 'whereis'
>
> find becomes a 'which' when files are searched with -exec, -execdir
> options.
>
> find is a multi-faceted utility and one can make power use of it together
> with xargs while discounting the shell.
>
>
> warm regards
> Saifi.
>
>

Reply via email to