nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Find Out If Linux Command Is Internal Or External

This is a discussion on Find Out If Linux Command Is Internal Or External within the Linux software forums, part of the Linux Getting Started category; Hi I m new to Linux and looking for answer of my question here. As per my understanding Internal commands ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-21-2008, 12:37 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: Redhat
Posts: 11
Rep Power: 0
Raj K Yadav is on a distinguished road
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.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-21-2008, 12:51 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
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!
Reply With Quote
  #3 (permalink)  
Old 08-21-2008, 11:35 PM
Junior Member
User
 
Join Date: Aug 2008
My distro: Redhat
Posts: 11
Rep Power: 0
Raj K Yadav is on a distinguished road
Default Thanx

Thanks Monk for the quick reply.It was really useful.
Reply With Quote
Reply

Bookmarks

Tags
bash , commands , linux , shell , type , unix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Command to find which process is utilizing max number of resources in Red hat Linux Santosh Sharma Linux software 0 01-19-2008 04:12 PM
Linux Find Out RAM CAS Latency Command andrei048 Linux hardware 1 01-04-2008 11:56 AM
Implementation of find command in Perl Bhushan Shell scripting 2 08-22-2007 01:15 PM
Use memory command to find details under Fedora Linux chiku Getting started tutorials 0 04-29-2007 09:35 PM
Internal Modem in Linux ricc Linux software 5 12-23-2005 06:13 PM


All times are GMT +5.5. The time now is 09:46 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36