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