LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2007, 11:24 PM   #1
jjangid
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
Question sh and source command


what is the difference between sh and source command of unix?
 
Old 08-24-2007, 12:47 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Why didn't you look where you were posting? sh is a shell, source is for "evaluating a file or resource as a Tcl script".
 
Old 08-24-2007, 03:30 AM   #3
mhearne
Member
 
Registered: Nov 2004
Location: Amarillo, TX
Distribution: Mandriva
Posts: 91

Rep: Reputation: 15
@jjangid

Open a console and type "man sh" (without the quotes of course), and then "man source".

This will tell you that sh is a shell (the original shell, by the way), and that source is a shell builtin.

A builtin is a command that is built into the shell, and is not a separate program in /bin or /usr/bin. I would say that there are about 65 of these. Unless you plan to learn shell scripting, you will probably not need to worry about many of them.
 
Old 08-25-2007, 02:01 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
source code of ps command sudeepghiya Linux - General 1 09-21-2006 10:35 AM
use of source command prabhu_713 Linux From Scratch 4 02-28-2006 08:42 PM
about the source command kpachopoulos Linux - General 2 06-12-2005 08:16 PM
what the command [source] does ? hq4ever Linux - Newbie 4 06-26-2004 04:09 PM
Where is source for 'who' command grittkmg Programming 2 10-15-2003 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration