Results 1 to 3 of 3

Thread: Find Out If Linux Command Is Internal Or External

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Find Out If Linux Command Is Internal Or External

    Hi I m new to Linux and looking for answer of my question here.
    As per my understanding Internal commands are those which are built-in, and external are those which are stored somewhere in binary files as executables.
    But how to understand whether a command is internal or external. Like cat, date, cp , echo etc.

  2. #2
    Senior Member monk's Avatar
    Join Date
    Jan 2005
    Location
    Tibet
    Posts
    643
    Thanks
    5
    Thanked 43 Times in 38 Posts
    Rep Power
    15

    Default

    Simply use type command:
    Code:
    type -a bash
    bash is /bin/bash
    Code:
    type -a cp
    cp is /bin/cp
    Code:
    type -a echo
    echo is a shell builtin
    echo is /bin/echo
    Code:
    type -a ls
    ls is aliased to `ls --color=tty'
    ls is /bin/ls

    How Linux or UNIX Understand which program to run - PART I
    May the force with you!

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Thanx

    Thanks Monk for the quick reply.It was really useful.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 19th January 2008, 03:12 PM
  2. Linux Find Out RAM CAS Latency Command
    By andrei048 in forum Linux hardware
    Replies: 1
    Last Post: 4th January 2008, 10:56 AM
  3. Implementation of find command in Perl
    By Bhushan in forum Shell scripting
    Replies: 2
    Last Post: 22nd August 2007, 12:15 PM
  4. Use memory command to find details under Fedora Linux
    By chiku in forum Getting started tutorials
    Replies: 0
    Last Post: 29th April 2007, 08:35 PM
  5. Internal Modem in Linux
    By ricc in forum Linux software
    Replies: 5
    Last Post: 23rd December 2005, 05:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •