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.
|
|
06-23-2003, 02:48 PM
|
#1
|
Member
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230
Rep:
|
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
|
|
|
06-23-2003, 02:57 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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).
|
|
|
06-23-2003, 03:09 PM
|
#3
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
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.
|
|
|
06-23-2003, 03:56 PM
|
#4
|
Member
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934
Rep:
|
I think some programs go somewhere under /etc don't they?
|
|
|
06-23-2003, 04:20 PM
|
#5
|
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445
Rep:
|
no, /etc is for configuration files.
|
|
|
06-24-2003, 03:50 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
Well there's some X11 things in there, and apache, and init scripts, so it's not all text files.
|
|
|
06-24-2003, 04:59 PM
|
#7
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339
Rep:
|
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?
|
|
|
06-24-2003, 08:04 PM
|
#8
|
Member
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934
Rep:
|
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.
|
|
|
06-24-2003, 08:09 PM
|
#9
|
LQ Newbie
Registered: Oct 2002
Distribution: Mandrake 9.1
Posts: 12
Rep:
|
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?
|
|
|
06-25-2003, 04:46 PM
|
#10
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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.
|
|
|
06-25-2003, 04:53 PM
|
#11
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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?
|
|
|
06-25-2003, 08:04 PM
|
#12
|
Member
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934
Rep:
|
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!
|
|
|
06-25-2003, 09:08 PM
|
#13
|
Member
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43
Rep:
|
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\
|
|
|
06-26-2003, 02:45 AM
|
#14
|
Member
Registered: Jun 2003
Location: Virginia
Distribution: Redhat, Centos, Fedora
Posts: 37
Rep:
|
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
|
|
|
06-27-2003, 08:42 PM
|
#15
|
LQ Newbie
Registered: Oct 2002
Distribution: Mandrake 9.1
Posts: 12
Rep:
|
thanks mara, i found all my programs!!!!!!!!
|
|
|
All times are GMT -5. The time now is 08:54 AM.
|
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
|
|