Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 2
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
3. FHS and finding files
  


All about "which" page 7 of 21


You can check to see if there's a given program in your PATH by using which. For example, here we find out that our Linux system has no (common) sense:


$ which sense
which: no sense in (/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin)

In this example, we successfully locate ls:


$ which ls
/usr/bin/ls

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact