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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
hi everybody there I'm very new to Linux ,can any body tell me where the program installed in Linux? Like in window whenever i install a software most of the the operating system ask me a place where to store the program or by default in programs files.
Now I'm using Linux(Ubuntu) i use the command apt -get install to install software or dpkg -i to install the package . I don't know where the software store its files in Linux or what is the default place to install the software ?can we use user defined path to install the software .what happen if we install software on user defined location did it still work? why we use root account to install the software ? How to install Library?
If you know what is the name of the package you installed, you can find out the install location of the program by which <package-binary>.
You can install software on a user defined location as well and it will work without issues. Root is the administrator of the system. Just like the administrator account in Windows. Difference is that, you do not use root account to login into the system. You just use it for the system maintenance and administration. A normal user does not have the rights to install software by default. But he/she can be given those rights using sudo. You can very roughly compare sudo to Run As option in windows.
On most distributions, software is installed under /usr. Unlike in Windows, where each program has its own folder, in Linux executables go in /usr/bin, libraries in /usr/lib, data files in /use/share, and there are others.
If the application developers decide they want a more Windows-like approach, with a folder dedicated to their application, that is usually placed under /opt.
For more information, look for and read the Filesystem Hierarchy Standard.
dpkg --listfiles <package_name> (where <package name> is replaced with an actual package name without the < > delimiters) will list all the files in the package including the directories they are in. Many of the directories follow the conventions of the Linux Filesystem Hierarchy (LFH) which should answer you question. The LFH is methodical but package designers do not always follow its recommedations exactly.
An easy way of knowing what and where you installed is entering synaptic, locate the package you just installed, right button->properties->installed files
It will show you the files that the package contains, where had been copied, and will help you learn how this stuff works