LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-23-2003, 03:48 PM   #1
Stevetgn
Member
 
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Rep: Reputation: 30
Question Where are all my programs install to?


Where are all my programs installed to. In Window they usually go in the folder "Program Files" what's the Linux Mandrake version of this folder. Also where do I find IPTables (this may be answered with the previuous question!)

Thanks in advance

Steve
 
Old 06-23-2003, 03:57 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
When you install from RPMs binaries go to /usr/bin, libraries to /usr/lib, other files may go to other directories in /usr. System programs (basic ones) usually go to /bin or /sbin. When you compile a program from source it usually goes to /usr/local/bin etc.

Iptables should be in your /sbin (/sbin/iptables).
 
Old 06-23-2003, 04:09 PM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
You can almost always just type the name of the executable, and as long as it's in your search paths, the console/terminal will automatically find the location and execute the command.
 
Old 06-23-2003, 04:56 PM   #4
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 932

Rep: Reputation: 32
I think some programs go somewhere under /etc don't they?
 
Old 06-23-2003, 05:20 PM   #5
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
no, /etc is for configuration files.
 
Old 06-24-2003, 04:50 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Well there's some X11 things in there, and apache, and init scripts, so it's not all text files.
 
Old 06-24-2003, 05:59 PM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
if you wanna know where an program executable is located, you can use the command whereis. E.g to find where winex3 is in my machine:

whereis winex3

That would give you the hole path to the executable . Most of the games are at /usr/local/games, I think :S?
 
Old 06-24-2003, 09:04 PM   #8
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 932

Rep: Reputation: 32
OT (sorta), how do I find about my hardware? I heard it was like cat /etc/pci or cat /dev/pci, but that isn't working for me. I know hardware is mounted in the file structure under /dev.
 
Old 06-24-2003, 09:09 PM   #9
FireIsMyFlag
LQ Newbie
 
Registered: Oct 2002
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
Question

I have a similar problem, I installed the RPMs for TightVMC and now i can not find the program...

i tried "whereis tightvmc" and i only get this:

$ whereis tightvnc
tightvnc:


what is that supposed to mean? I also tried the directories /usr/bin and /bin but i couldnt find it, and when i go to the RPM Drake it says they are installed already, what can i do?
 
Old 06-25-2003, 05:46 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally posted by lectraplayer
OT (sorta), how do I find about my hardware? I heard it was like cat /etc/pci or cat /dev/pci, but that isn't working for me. I know hardware is mounted in the file structure under /dev.
/proc/pci, in fact. Info about hardware is in /proc. It's hard to say that the hardware is mounted in /dev. It's better to say that files in /dev represent certain pieces of hardware.
 
Old 06-25-2003, 05:53 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Quote:
Originally posted by FireIsMyFlag
I have a similar problem, I installed the RPMs for TightVMC and now i can not find the program...

i tried "whereis tightvmc" and i only get this:

$ whereis tightvnc
tightvnc:


what is that supposed to mean? I also tried the directories /usr/bin and /bin but i couldnt find it, and when i go to the RPM Drake it says they are installed already, what can i do?
Try
rpm -ql tightvmc
It should list you all files from tightvmc RPM with their path (among them there will be the executable). Maybe it's in /sbin or /usr/sbin?
 
Old 06-25-2003, 09:04 PM   #12
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 932

Rep: Reputation: 32
Quote:
Originally posted by Mara
/proc/pci, in fact. Info about hardware is in /proc. It's hard to say that the hardware is mounted in /dev. It's better to say that files in /dev represent certain pieces of hardware.
Thanks!
 
Old 06-25-2003, 10:08 PM   #13
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Rep: Reputation: 15
Another path type relation question ---

Where do I put my Webserver files to make them 'Live' on the net?

Do I just drop them in the Apache install directory?
Although I forget where it's installed to..

I know the Win2000 equiv is \..\Program Files\Apache Group\Apahce2\
 
Old 06-26-2003, 03:45 AM   #14
xiaodown
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37

Rep: Reputation: 15
IF whereis does not find your file:

Type updatedb

This builds a list of all files on the system.

Then type locate file

Alternatively, you can do this:

cd /; find | grep -i file

The command "find" by it's self will list every file on the system if typed in the root ( / ) directory, so expect that to take a while.

Whereis will only find things that are in your path. To see your path, type: echo $PATH

For webserver files, the default directory for the "default" website in the redhat install of apache is
/var/www/html

The config file for apache is in /etc/httpd/conf - usually httpd.conf or httpsd.conf. The default directory should be in there. If you're not talking about the default apache folder, but a specific virtual host in apache, it will be in the virtual host entry in the apache conf file. Search for "DocumentRoot" in the conf file. A virtual host usually looks like this:
<VirtualHost ip-address>
ServerName www.domainname.com
ServerAlias domainname.com www.othername.com othername.com
DocumentRoot /home/bob/www
</VirtualHost>
So, in this case, the files that show up when someone goes to domainname.com are in /home/bob/www.

~Will
 
Old 06-27-2003, 09:42 PM   #15
FireIsMyFlag
LQ Newbie
 
Registered: Oct 2002
Distribution: Mandrake 9.1
Posts: 12

Rep: Reputation: 0
thanks mara, i found all my programs!!!!!!!!

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't install g++ so I can't compile and install any programs musicmaniac414 Linux - Software 12 02-06-2008 10:31 PM
How to install programs ??????? antisocialiting Linux - Newbie 6 08-15-2005 03:03 AM
Programs Won't Install dumbsheep Linux - Newbie 9 01-11-2005 01:39 PM
How do I install programs?? twitch88 Linux - Newbie 4 07-22-2004 05:02 PM
Can't install programs tagbre Linux - Newbie 5 12-30-2003 07:28 AM


All times are GMT -5. The time now is 06:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration