LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-02-2006, 04:49 PM   #1
amit_chandak
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Lightbulb Linux Newbie: doubt regarding program files


hi all,
i am a newbie to linux,i have a small doubt,in windows whenever we install a software or pcakage it gets installed in a particular folder(Program files) so that whenever we use the software it executes the binary code of that software from that folder but in linux we can install any package any where,and we can also run the installed package from the terminal(we need not be in the installed folder while executing),so how does this happens,is the PATH set to check all the folders? Please explain.

Thanks in advance.
 
Old 03-02-2006, 05:36 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Your path has the locations where most programs should be installed. It won't contain everything though, and it won't contain programs that require a lot of supporting files. However, you can use the full path to a program to run it (for example, /u01/app/oracle/product/10.2.0/db_1/bin/sqlplus). You can see your path with echo $PATH.

Was that what you were looking for?
 
Old 03-02-2006, 06:33 PM   #3
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Just for future reference, what does this have to do with a LUG? There are many places to post in LQ, and I know sometimes it might confuse a new person. But when we strive to put our posts as close to where we think they belong, we would more then likely be putting it somewhere where it might find eyes that can help. So I welcome you to LQ, but I ask that you please look at a good place for your posts so they get good attention.
 
Old 03-02-2006, 08:24 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Oops - sorry about that. I didn't read the forum name before replying myself...
 
Old 03-04-2006, 12:24 PM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 03-04-2006, 03:57 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by amit_chandak
hi all,
i am a newbie to linux,i have a small doubt,in windows whenever we install a software or pcakage it gets installed in a particular folder(Program files) so that whenever we use the software it executes the binary code of that software from that folder but in linux we can install any package any where,and we can also run the installed package from the terminal(we need not be in the installed folder while executing),so how does this happens,is the PATH set to check all the folders? Please explain.

Thanks in advance.
In some fundamentals, Windows and Linux are really no different. For example, in Windows, you can put program files (executables) anywhere you want to. The "programs" folder is only a convention. Same answer for Linux---there are conventions for where executables go, but you can put them anywhere you like.

In both OSes, you can create shortcuts (links)

In Linux, you have the PATH variable to tell the system where to look for executables. In Windows, this info is in the Registry??

In Linux, you can modify the PATH variable at the command line, or in one of the init configuration files. Don't know the equivalent for Windows.
 
  


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
Program to eject cdrom drive ... doubt tuxfood Programming 3 07-20-2005 03:33 AM
Does Linux have a Program Files directory? aznluvsmc Linux - Newbie 4 08-24-2004 08:26 PM
Linux newbie needing help installing P2P program rmpdark Linux - Software 4 04-22-2004 12:21 PM

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

All times are GMT -5. The time now is 10:51 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