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!
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.
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.
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.
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.
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 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..
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.