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.
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.
fs layout:
/etc: configuration files
/var: variably sized files, such as logs and ./www/
/bin: programs
/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)
finding files:
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.