Quantcast
Channel: Tutorials — LowEndTalk
Viewing all articles
Browse latest Browse all 1033

How to determine where a binary command is stored / located on file system

$
0
0

You can use “type” or “whereis” command to find out which command shell executes and to print binary (command) file location for specified command.

whereis command example

Display ls command location along with man page path: whereis ls Output: ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz

type command example

Find out which command the shell executes: type -a ls Output: ls is aliased to `ls –color=tty’ ls is /bin/ls


Viewing all articles
Browse latest Browse all 1033

Trending Articles