Solved

Finding unix commands...

Posted on 2004-10-25
351 Views
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
0
Question by:bganoush
    4 Comments
     
    LVL 20

    Accepted Solution

    by:
    `which ls`
    0
     

    Author Comment

    by:bganoush

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

    -- Bubba
    0
     
    LVL 20

    Expert Comment

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

    Cheers!
    0
     

    Author Comment

    by:bganoush

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

    -- Bubba
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    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.
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now