LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-04-2005, 12:54 PM   #1
acj
LQ Newbie
 
Registered: Feb 2005
Distribution: Redhat 9....
Posts: 3

Rep: Reputation: 0
"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
 
Old 02-04-2005, 01:12 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
Have you tried googling, reading books etc?

We i.e. LinuxQuestions are not here to do your homework.
 
Old 02-04-2005, 01:18 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
There are lot of Unix/Linux books/material online. You may wanna do a google search or buy a cheap Unix/Linux book.
 
Old 02-04-2005, 01:26 PM   #4
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
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.
 
Old 02-04-2005, 02:36 PM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Just to help you a bit.....PATH is an environment variable. Why don't you run the command and see what it does.

-twantrd
 
Old 02-04-2005, 02:45 PM   #6
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
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
 
Old 02-04-2005, 04:52 PM   #7
acj
LQ Newbie
 
Registered: Feb 2005
Distribution: Redhat 9....
Posts: 3

Original Poster
Rep: Reputation: 0
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....
 
Old 02-04-2005, 05:54 PM   #8
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
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.
 
Old 02-04-2005, 05:56 PM   #9
acj
LQ Newbie
 
Registered: Feb 2005
Distribution: Redhat 9....
Posts: 3

Original Poster
Rep: Reputation: 0
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....
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does echo alias "char-major-10-224 off" >> /etc/modules.conf do? abefroman Linux - Software 2 09-16-2009 10:10 PM
"Could not init font path element""Unix /: 7100 removing from list/ zameer_india Linux - Networking 7 07-03-2006 06:11 AM
Cedega from Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Software 0 03-30-2005 11:24 AM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 02:48 AM
want full description of "echo num > / path/...." zameer_india Linux - Newbie 5 01-08-2005 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

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