Saturday, September 5, 2015

How to find the path of your program when you only know the program name

"If it is in your path, then you can run either type git or which git. The which command has had problems getting the proper path (confusion between environment and dot files). For type, you can get just the path with the -p argument.
If it is not in your path, then it's best to look for it with locate -b git It will find anything named 'git'. It'll be a long list, so might be good to qualify it with locate -b git | fgrep -w bin."


reference:
http://unix.stackexchange.com/questions/28555/how-to-find-applications-path-from-command-line

No comments:

Post a Comment