How do i find the locations of commands using which?



  • As well as the whereis command, the which command, is an alternative.
    Only finds the binaries.

    $ which cat
    /bin/cat
    

    The which with the -a option is handy, it list any aliases too.

    $ which -a ls
    ls: aliased to ls --color=tty
    /bin/ls
    

Log in to reply
 

© Lightnetics 2024