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.
i had this exact problem a few days ago basically the packages can install in many places commonly /usr/local/ also /usr/bin and /usr/sbin. You can manuall set their install location but you don't REALLY need too...
The easiest way i found to locate installs either from packages or make install is first to run as su "updatedb" which create a fresh database of all files on your machine (although this runs auto every 24 hours(?) ) after updatedb you can use "locate <filename>". Once you've found the file simply call it using the full path or navigate to its install directory.
unlike windows, programs in linux are installed all over the place. Files of a particular type are located in standard places. For example library files will be locted in the lib directories and binary files will be in /bin or /sbin or /usr/local/sbin. The important thing to note is that files are installed all over the sytem not in one place like windows.
You can find out which files belong to a particular rpm package by typeing the following in a terminal
rpm -ql thePackageName
replacing thePackageName with the one of the rpm file you installed. This tells rpm to query (q) the package with name thePackageName and list (l) all the files associated with the package.
rpm -ql httpd
So this will list all the files that belong to the package httpd (ie the web server)
im just curious what lib files _actually_ are? Im found that bin and sbin are just runable files for either all users or su (sbin). Are lib files similar to dlls in windows?
lib stands for library.
bin stands for binary.
sbin stands for superuser binaries.
Like the name suggests the library files are like resources you have access to and can use when it is convinient.
You can use the same library file for a number of applications like dll files. The linux kernel has a heaps of library files that allow access to the file system such as saving files etc. If you have done any C programmming you would have included files into you program such as stdin.h or something like that. Including this file will give you access to function defined in those files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.