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.
As a newbie I'm getting to really love Linux now. Especially Mandrake 10 which rocks.
However, I find the Linux/Unix file/directory system a mess! There's bits and bats everywhere!!! var, etc, usr, bins, sbins within bins & bin in etc & usr...WHAT?!?
In Windows XP my C drive ("root directory!") has 3 folders Almost all of Windows itself sits in one, Programs go in another and your "home" sits in Documents and Settings. There seems to be crap everywhere in Linux and I'm finding in very hard to find stuff, where are my programs, where are all the sounds, where does stuff go when I install it, how do I find the exe. file and icons to the program to create a shortcut/link after installation????
Can anyone offer any help on the messy directory structure?
/ would be the equivilent of c:\
/home is like My Documents
/etc is your config files
/usr hosts all your executable files (kinda)
/var is where you will find logs
/bin is like program files. where all the programs are stored.
Now this is just what I've gathered. You will find out more once you jump out of the gui and into the cli.
Any of you gurus out there, feel free to correct me where I am wrong.
I can try. I remember when I got started with Linux I felt the same way. But now, having used it for a few years it makes even more sense than Windows.
Here's few commands to help you find stuff:
'find /home/username mozilla' would recursively search through your home dir for a file or directory named mozilla. With the find command, you have to put the search path first, then the filename. So 'find / vim' would search through the entire filesystem for vim. find is extremely useful, so be sure to check out the find man page to see the tons of options you can use with it.
'locate filename' will show the exact path to a particular file. ex:
Locate uses a database that keeps a running list of filenames. The database is usually updated periodically depending on your distro, but if you want to locate a file recently added you might want to update it manually with 'updatedb' (as root).
Finally 'which xmms' will display the path to the xmms executable or any other executable program you need. However, if the executable is not in your PATH it wont show it. As user, most all dir's with programs in it are in your path anyway.
I used to think the filesystem heirarchy was terrible also. You'll get used to it and eventually find it to be logical. For example, ever try to track down a configuration file in Windows?
Let's see, if they're running Windows 9x, its probabl burried in the C:\Program Files\WhateverApp\ directory. If they're running Windows XP or 2000, it could be in C:\Documents and Settings\User\Application Data\ or just in its own folder in C:\Documents and Settings\User. Not there? Well, you get to go looking through the registry.
In Linux? /etc for system wide settings, ~/.something for user specific settings
Cool! I am glad it helped. Linux has a steep learning curve, but one you get past the initial shock, everything starts to make perfect sense and the learning comes easier
Originally posted by Stevetgn
In Windows XP my C drive ("root directory!") has 3 folders
And now you can also certainly tell me where for example
Windows' equivalent of Linux' /etc/services lives without
having to use the search-function of exploder?
The fact that MS hides their messes in 2 or 3 directories
on the base level doesn't make the mess any smaller.
And putting all configuration data into a single file doesn't
make the mess smaller, either, it's not exactly my favourite
past-time to clean out a 60MB registry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.