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.
|
|
03-26-2005, 12:39 AM
|
#1
|
Member
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125
Rep:
|
Trying to make sense of Linux files
Hi, I have recently started trying to get into Linux, I have Slack10 up and running on my laptop (so I can mess with it during downtime on campus) and I'm determined to use FVWM and customize it to my needs/tastes. One of the things that is still a little troubling for me right now, though, is the whole concept of how Linux arranges its files. Under Windows, all the system stuff was thrown in a directory, all the programs were in a directory, and all the documents were in a directory (essentially). I realize that Linux is a lot more open about its inner workings (though ironically more secure with them) so it makes sense that its files would be more scattered around. I can live with that, but the organization of files that I might actually be using is a bit too much for me. For instance, from what I have gathered so far, the executables for programs go in a single directory, and the configuration files go in another for instance.
Can anyone just give me a rundown of what the file structure is under Linux? And, when I install something (Firefox) which puts all its stuff in its own directory, where is the place to put it?
Thanks in advance for tolerance of my newbishness
|
|
|
03-26-2005, 01:12 AM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
|
|
|
03-26-2005, 01:55 AM
|
#3
|
Member
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125
Original Poster
Rep:
|
Ah, nice. Thanks, I'll get right to reading that.
EDIT:
OK, I don't want to sound impatient, because I do plan on reading through it all, but would I put the firefox directory in /opt then? (I'm mainly concerned with this program because it's the first step in making my first Linux system usable).
Last edited by jnsg; 03-26-2005 at 02:28 AM.
|
|
|
03-26-2005, 03:00 AM
|
#4
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
If it's just for you, you could stick it in $HOME. Otherwise, yeah, /opt is good. However, I think there's a way to get it distributed throughout the system with a /usr or /usr/local prefix. Whichever you want.
bin and sbin is where the executables live, lib where the libs are, etc where the configs, var where variable data (logs and spools and the like) live, tmp where temporary files go. /boot for the kernel. The root hierarchy for vital system stuff, a mostly repeated /usr for the user apps, a mostly repeated /usr/local for the add-on normal apps, a mostly repeated /opt for the large or weird packages. And so on. You'll get it. But reading the FHS, while strongly advised, shouldn't be required reading for a Firefox install.
|
|
|
03-26-2005, 04:17 AM
|
#5
|
Senior Member
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938
Rep:
|
The linux approach makes sense...if you have all the libs in one place that means there's only one place for the loader to search when it needs a library. If you have all the binaries in one place then you can add that location to the path so you only have to type a program name to run it. The windows approach means you either have to have every directory in the path, or you have to navigate to a program's directory in order to run it.
|
|
|
03-26-2005, 04:52 AM
|
#6
|
Member
Registered: Mar 2005
Location: Sunshine Coast, Australia
Distribution: Kubuntu Warty
Posts: 64
Rep:
|
I LOVE you're signature KomaKino
|
|
|
03-26-2005, 05:27 AM
|
#7
|
Member
Registered: Mar 2005
Distribution: slackware-current
Posts: 379
Rep:
|
Actually once you learn the thedirectoy hiarchy it makes perfect sense. You can keep every clean and know where everything is. But yeah at first it seems overwhelming.
In windows they have the entire OS in WINDOWS folder... temp files, config files, libraries, executables, drivers, log files, random stuff. It's a complete mess. A file here, a file there. There is no standard place to put anything, especially installed programs which wind up completely spamming you system. Little here, a little there. Then eventually just to get back to a responsive system. Boot-disk... "format c:"
|
|
|
03-26-2005, 09:24 AM
|
#8
|
LQ Newbie
Registered: Mar 2005
Posts: 1
Rep:
|
jnsg--The file structure is, of course, logical, and stems from the "root" directory, which is thought of as the top one from which the others decend --like an upside-down tree. You should study the structure in a book, like "How Linux Works" by Brian Ward. One thing which is probably confusing you is that directories (folders in Windows) with the same name can be in various places in the directory/file tree. For example, bin directories can be /bin, /usr/bin, /usr/local/bin, etc. So, although executables are put in bin directories, they can be in fact in different bin directories. Where it's best to put executable files is somewhat standardized. The books will explain this for you. I hope this orients you somewhat.
David Haas (still a newbie)
|
|
|
All times are GMT -5. The time now is 05:01 PM.
|
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
|
|