Linux - Newbie This 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! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-04-2005, 12:54 PM
|
#1
|
LQ Newbie
Registered: Feb 2005
Distribution: Redhat 9....
Posts: 3
Rep:
|
"echo $path"
Hey guys, I have a Network OS class and I have this lab report. Anyway, one of the questions is: 25. "Explain the output from the command “echo $PATH”. Exactly what is a path?." Where exactly can I find info on this? I ran the command in lab and didn't really understand it. I just want to know what an example output would be and what it means, as the question sounds.
Thanks guys,
acj
|
|
|
02-04-2005, 01:12 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,920
|
Have you tried googling, reading books etc?
We i.e. LinuxQuestions are not here to do your homework.
|
|
|
02-04-2005, 01:18 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
There are lot of Unix/Linux books/material online. You may wanna do a google search or buy a cheap Unix/Linux book.
|
|
|
02-04-2005, 01:26 PM
|
#4
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
It looks like the book should be an introductive, PC/general software geared one. Because a path is a path in both Windows and Linux, even if the syntax is not exactly the same.
|
|
|
02-04-2005, 02:36 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
Just to help you a bit.....PATH is an environment variable. Why don't you run the command and see what it does.
-twantrd
|
|
|
02-04-2005, 02:45 PM
|
#6
|
Member
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669
Rep:
|
Welcome to LQ.org!
As the others have stated, this forum is not to be used as a place to get answers to homework. Google is your friend for that kind of stuff
http://linux.about.com/od/linux101/l/blnewbie3_1_4.htm
looky looky i did your homework using google  and i just broke the rule.. well i'm a nice person, so let this one slide, just between you and me
This forum is a vast resource of problems and answers, so the first thing to do would be to do a search on the entire forum. Then google. Then more google. Then post a question. It is preferred that the user has put in some effort to show they are actually wanting to know how to do something or why something does what it does and not just want to know the answer without caring (for homework, as an example). I'm not saying you don't care just that you should search around a little first
I hope this was insightful
|
|
|
02-04-2005, 04:52 PM
|
#7
|
LQ Newbie
Registered: Feb 2005
Distribution: Redhat 9....
Posts: 3
Original Poster
Rep:
|
I happen to have a Red Hat Linux Admin guide...but it doesn't really mention that path stuff. I didn't want you to do my homework, or I would have simply asked you to do it for me. I asked for info on what the "echo Path" command does.
I did google it and it came to this website, so it made sense to post here..
Anyway, I appreciate the answers....
|
|
|
02-04-2005, 05:54 PM
|
#8
|
Member
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669
Rep:
|
The command "echo" does what it says. It echoes whatever follows it to the command line. PATH is a variable in the shell, and putting a $ infront of it calls upon it. PATH stores the path directories to commands.
|
|
|
02-04-2005, 05:56 PM
|
#9
|
LQ Newbie
Registered: Feb 2005
Distribution: Redhat 9....
Posts: 3
Original Poster
Rep:
|
Quote:
Originally posted by student04
The command "echo" does what it says. It echoes whatever follows it to the command line. PATH is a variable in the shell, and putting a $ infront of it calls upon it. PATH stores the path directories to commands.
|
Hey thanks, I pretty much figured that out on that website you gave me. The "echo" part was pretty clear as I've worked with batch files before. Wasn't sure what the whole $PATH part was about though.
I appreciate the replies though....
|
|
|
All times are GMT -5. The time now is 11:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|