Thursday, August 20, 2015

How to use which,find and whereis commands?

How to use  which,find and whereis commands?



suppose you want to get firefox location directory or details in linux use below commands

Command   :   which firefox
Output        :    /usr/bin/firefox

 Command  : whereis firefox
 Output      :
firefox: /usr/bin/firefox /usr/lib/firefox /usr/bin/X11/firefox /usr/share/man/man1/firefox.1.gz

 Command    :   find / -name firefox
 Output        :    /usr/lib/firefox
                        /usr/lib/firefox/firefox




Thank You

No comments:

Post a Comment