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.
I got a good idea of the organization in the book The Linux Bible. it explains what the directories are for and why in this way.
/etc is the directory where all the configuration files are (ussualy if not set up differently)
/var holds many different variables as the name itself explains. Logs are found here.
/bin holds binary executable files (probably all unix machines do not differ in this directory much. Many same programs will be found here as this is the base command set)
/sbin holds many other binary commands, that you might find or might not find on different machines running UNIX
/usr holds the user installed programs, usually if not set different.
I suggest you start with a book on Linux. It will explain a lot to you.
/etc: configuration files
/var: variably sized files, such as logs and ./www/
/sbin: more programs
/usr: user-space stuff;
/usr/bin is programs
/usr/share/doc is documentation
/usr/local/bin even more programs.
/proc and /sys: system information. Don't mess with it unless you know what you're doing.
/home/(username)/: `My documents'
/home/(username)/bin: you guessed it: programs (*)
(*) well, this is up to the user, but I do it, so everybody else must do the same (by logic *cough* reasoning)
try `locate' and `find'. locate is much faster, but it needs to update a database of file names (that is, if you made recent changes to the fs structure, it might produce a wrong result).
find: slower, always correct, more expressive.
non-general-purpose searching: `which'. returns you the path of the program (/foo/bar/baz) matching a `call' to that program ($ bar)
(in other words, typing foo at the prompt will run $(which foo)