The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch iBot UNIX and Linux RSS News 0 12-19-2007 09:20 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 02:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 04:57 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 10:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2006
Registered User
 

Join Date: Sep 2006
Posts: 5
How does UNIX....?

Hello all,

Got a question to ask, in some OS, if a shell command is not an internal command, then it is assumed to be a separate program which is loaded into the memory of the computer and then executed.

In UNIX a different technique is used which does much the same sort of thing. What is the UNIX technique?
Reply With Quote
Forum Sponsor
  #2  
Old 09-05-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
You have it exaclty.
UNIX uses a PATH variable to look up the location of external commands.

Code:
echo $PATH
will show you yours.

In ksh or sh
Code:
type <command>
shows you the location of external commands or "shell builtin" for internal commands. Sometimes there are two: an internal and an external. For my version of ksh, print is an example of this.

To force the shell to use external print on my box add a fully qualified name:

Code:
/usr/bin/print "some stuff"
Reply With Quote
  #3  
Old 09-06-2006
Registered User
 

Join Date: Sep 2006
Posts: 5
Thanks a lot! your help is greatly appreciated =)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0