[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

Finding unix commands...


Is there a one-liner to find a specific unix command on a drive assuming its directory is included in the PATH variable?  I don't want to "find" the command, I was hoping there is either a way to just ask the OS where the command is stored...

Example: "where is the 'ls' command?", my requested result would say "/usr/bin/ls"...

-- Bubba
0
bganoush
Asked:
bganoush
  • 2
  • 2
1 Solution
 
tfewsterCommented:
`which ls`
0
 
bganoushAuthor Commented:

Can't you at least make it seem harder so I don't look like a complete novice?  :-)

-- Bubba
0
 
tfewsterCommented:
hehe - I'd already posted that in your deleted "cron" question, so I didn't have to do too much work ;-)

Cheers!
0
 
bganoushAuthor Commented:

OOPS!!  Sorry, I should have upped the points then... You lost out on 450 points...

-- Bubba
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now