Shell command for outputting absolute path of binary
Is there a shell command for outputing absolute path for specified program? I'd like to know where executable binary file is.
Solution 1:
Try which ls
to discover full path to ls
command
Solution 2:
The command
type name
will give you every information about name
, if executable (returning also the path), shell alias, shell function, shell builtin.
Solution 3:
whereis -b yourBinary
will output the location of a program.