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.
and...
/etc/ contains your boot scripts, (anomgth other scripts)
/dev/ contains all your devices. in linux, all hardware is a device.
for fun, try (as root) 'cat /dev/random > /dev/dsp' that will read your random number generator, and "SAVE" it onto your sound card... (you will hear load screaches)
and /usr/ contains probrams and libraries.
Quote:
“programs”, “system settings” and “user profiles” ?
arnt they windows file names ???
well.. firtst of all, there is no programs folder because programs are split up... binarys go in a binary folder, and libs go in a library folder, scripts go in the scripts folder....
its just common sence in organiseing files.
however, i suppose /home/user_name would be the equivalant to the user_profiles folder... (see the hidden files in there, they contain user settings and preferences)
Originally posted by qwijibow remember, not every1 speaks english.
Ah, yes... you're right.
Quote:
Originally posted by qwijibow
and...
/etc/ contains your boot scripts, (anomgth other scripts)
/dev/ contains all your devices. in linux, all hardware is a device.
for fun, try (as root) 'cat /dev/random > /dev/dsp' that will read your random number generator, and "SAVE" it onto your sound card... (you will hear load screaches)
and /usr/ contains probrams and libraries.
arnt they windows file names ???
well.. firtst of all, there is no programs folder because programs are split up... binarys go in a binary folder, and libs go in a library folder, scripts go in the scripts folder....
its just common sence in organiseing files.
however, i suppose /home/user_name would be the equivalant to the user_profiles folder... (see the hidden files in there, they contain user settings and preferences)
Ok, this helped me to understand those strange names.
The directory hierarchy in Linux is supposed to follow the Filesystem Hierarchy Standard, but it still differs a bit between different distributions. You can find the 2.2 draft of the standard here. It explains the standard in depth.
User friendly doesn't have to mean "as easy as possible to understand", and since Linux comes from a Unix tradition the traditional Unix names have been preserved in order to maximize compatibility and ease of use. Spaces in filenames have to been escaped, so in order to cd to a directory called "My Files" you would have to type cd My\ Files or cd "My Files", and shorter names are quicker to type.
Windows suffers from several problems where multiple versions of the same libraries (*.dll files in Windows, *.so in Linux) can exist at the same time and interfere with one another. Linux has a smarter way of dealing with this, keeping the libraries in /lib, /usr/lib and /usr/local/lib. A program called ldconfig scans these directories for libraries and generates a list of what librabries are avaiable and which ones to use in case several libraries with the same names exist.
Similarily, all binaries are kept in /bin, /usr/bin, and /usr/local/bin.
The root folders - /lib and /bin most notably, contain system critical libraries and files. To name an example, module (driver) management programs are stored in /bin and modules in /lib/modules.
The /usr hierarchy contains the bulk of the software on the system while /usr/local contains locally built software, meaning software that doesn't come from your distribution but is built from source on the local machine.
For more info, read up on the link I provided above.
This is also a very good link for newbies wishing to explore the structure, and also has many more topics on nearly everything if your starting in linux. Linux Administration Guide
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.