Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
First of all, you need to phrase your questions well. That would help you fetch better answers.
Now, if you do
You will find the manual page of source. The man pages are your best friend. Scroll down a little and you find the description of source
#source filename [arguments]
Read and execute commands from filename in the current shell
environment and return the exit status of the last command exe-
cuted from filename.
LinuxLala, how would you prefer i asked the question?
if it wasn't clear enough from the title then sorry i tried to do this as informative as possible.
now about [man source], believe me i did this, i also did [info source] & i searched linuxquestion for posts about the command (as you might guess posts with the word source are not hard to find in linux forum)
now look i'm copying (by hand) from my linux screen onto my xp machine because i do not know how to get a linux
shell from windows yet .
Source is a bash builtin command, and all those commands are grouped together into one man page. If you had scrolled down, you would have seen a description of what source does. As LinuxLala says, it executes a file in the current bash shell environment. It's mostly useful for configuring environment -- for instance, I might want to make a bunch of custom aliases, or tweak my PATH or whatever. I would put the commands to do so in my .bashrc file, but that only gets read when I login or start a new shell. If I want my new things to apply to the shell I'm working under now, I do source .bashrc and that runs the .bashrc and applies any new aliases or environment variable settings to my current terminal session.
BTW -- you should look into ssh as a way to get a terminal on your Linux machine from a separate Windows machine.