I want to find out the file path of commands in Linux e.g., ls
has file path as /bin/ls
. How can I find out the exact path of some commands?
As pointed out, which <progName>
would do it. You could also try:
whereis -b <progName>
This will list all the paths that contains progName
. I.e whereis -b gcc
on my machine returns:
gcc: /usr/bin/gcc /usr/lib/gcc /usr/bin/X11/gcc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With