Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Finding unix commands...

Posted on 2004-10-25
Medium Priority
Last Modified: 2013-12-06

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
Question by:bganoush
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 21

Accepted Solution

tfewster earned 200 total points
ID: 12400034
`which ls`

Author Comment

ID: 12400061

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

-- Bubba
LVL 21

Expert Comment

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


Author Comment

ID: 12400113

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

-- Bubba

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question