How do i find the locations of commands using whereis?



  • Link to man page for whereis: https://www.lightnetics.com/post/6104

    Note: whereis work off various environment paths, set in your shell, if the paths are not set to include a certain directory path whereis will not find the entry, however you can specifically set a path on the command line when running wher
    eis

    Use the whereis command, by defaut it show you all source, binary, and
    man pages

    $ whereis cat
    cat: /bin/cat /usr/share/man/man1/cat.1.gz
    

    If you just wanted binary for instance:

    $ whereis -b cat
    cat: /bin/cat
    

Log in to reply
 

© Lightnetics 2024