LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-18-2004, 06:40 AM   #1
jpkeisala
LQ Newbie
 
Registered: Apr 2004
Location: EU
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
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
 
Old 04-18-2004, 06:55 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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)
 
Old 04-18-2004, 07:11 AM   #3
jpkeisala
LQ Newbie
 
Registered: Apr 2004
Location: EU
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 04-18-2004, 07:24 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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.
 
Old 04-18-2004, 08:42 AM   #5
Hal
Member
 
Registered: Oct 2003
Location: East Anglia, England
Distribution: Dapper Drake / Slackware
Posts: 151

Rep: Reputation: 30
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. (-;
 
Old 04-18-2004, 01:14 PM   #6
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 32
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
 
Old 04-18-2004, 01:16 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It's also a lot quicker to type "/usr" than "C:\program files"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
folders qerf Linux - Newbie 1 11-19-2005 09:20 PM
What are those folders? Ephracis LQ Suggestions & Feedback 2 02-25-2005 08:34 AM
So many folders merchtemeagle Linux - Newbie 4 10-07-2004 08:23 AM
sharing folders jstephens84 Fedora 1 09-18-2004 12:13 PM
Mutt and Folders slano Linux - Software 1 09-26-2003 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration