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.
|
 |
04-18-2004, 06:40 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: EU
Distribution: Ubuntu
Posts: 3
Rep:
|
what are those folders in a /
What’s the deal with etc/ dev/ usr/ - folders. Why don’t they use little more friendly names like “programs”, “system settings” and “user profiles” ?
What is equalent for windows "program files"
regs,
jp 
|
|
|
04-18-2004, 06:55 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
remember, not every1 speaks english.
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)
|
|
|
04-18-2004, 07:11 AM
|
#3
|
LQ Newbie
Registered: Apr 2004
Location: EU
Distribution: Ubuntu
Posts: 3
Original Poster
Rep:
|
Quote:
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.
Thanks
|
|
|
04-18-2004, 07:24 AM
|
#4
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
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.
Håkan
Last edited by hw-tph; 04-18-2004 at 07:25 AM.
|
|
|
04-18-2004, 08:42 AM
|
#5
|
Member
Registered: Oct 2003
Location: East Anglia, England
Distribution: Dapper Drake / Slackware
Posts: 151
Rep:
|
Happy Birthday jpkeisala
I am a newb. also, and I found this section to be very informative:
http://linux-newbie.sunsite.dk/lnag_...#dir_structure
A supplement to the already informative posts above. (-;
|
|
|
04-18-2004, 01:14 PM
|
#6
|
Member
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391
Rep:
|
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
|
|
|
04-18-2004, 01:16 PM
|
#7
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It's also a lot quicker to type "/usr" than "C:\program files"
|
|
|
All times are GMT -5. The time now is 10:07 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
|
|