LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   sh and source command (https://www.linuxquestions.org/questions/linux-general-1/sh-and-source-command-579381/)

jjangid 08-23-2007 11:24 PM

sh and source command
 
what is the difference between sh and source command of unix?

Nylex 08-24-2007 12:47 AM

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".

mhearne 08-24-2007 03:30 AM

@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.

XavierP 08-25-2007 02:01 PM

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


All times are GMT -5. The time now is 02:36 PM.