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.
Well i am back to linux again and i got some questions. I am wondering how the Linux system works with programs. For example with Windows you will install most programs in c:\Program Files\ but how does this work in Linux ? I have no clue to organize my Linux/hda what ever. What is a standard path were you install your programs like Amsn etc, and where do you leave your mp3 stuff.
As for your files, they go in your home directory... /home/user_name . If you have files you want to share betwixt users, I normally make a /home/shared directory.
I think precompiled packages go wherever they want to. When you compile, you have more control. But, in essence, Windows groups files by programs (with plenty of other random scattered crap in WINDOWS\System32 and Documents and Settings\WhoozitsData or wherever (I forget). Linux stores files according to function. Some things go into /opt akin to 'Program Files' but mostly, as ranger-nemo says, the executables go in */bin - the configs go in */etc and ~, the docs in */doc, and so on.
So it's more on which filesystem - standard is to leave /bin and /sbin to the system, as well as /usr/(s)bin and so on. Mostly you'd want to install with a prefix of /usr/local which means most stuff gets distributed under that directory tree. But you can install them to somewhere in $HOME such as ~/bin or wherever you want. (Most binary packages install the executables in /usr/bin, though.)
The cool thing is that /usr/local can be on its on partition (safe if you need to reformat a piece of the disk) and Linux distros don't touch it as a rule.
And, yeah, your personal files should go under /home/your_user_name. Even there, /home used to be under /usr, I think, and I've had it under /usr/local/home before. You can do whatever you want but the path of least resistance and least complications is to go with defaults - my junk in ~; programs with '--prefix=/usr/local'. The *nix fs is actually pretty cool and will make sense after awhile if it doesn't now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.