Anda di halaman 1dari 4

Linoobs Guide to Ubuntu Filesystem Structure Linoob.

com

http://www.linoob.com/2012/03/linoobs-guide-to-ubuntu-filesystem-stru...

ABOUT

FORUM

CONTACT US

Linoobs Guide to Ubuntu Filesystem Structure


At first, the Linux filesystem seems confusing for linoobs. But dont worry, here is a quick guide to understand Linux (Ubuntu) Filesystem. The Linux Filesystem is very organized and easy to understand. The first thing you should know when working with linux, is that everything is treated as either a file or directory. Even hardware is considered a file by linux and all your hardware devices are located in the /dev directory. Another thing that confuses windows users, is the fact that linux doesnt use drive letters to distinguish between different partitions and devices. The root of your filesystem is / whereas in windows it would most probably be C: . Drives in linux are mounted to directories where their data can then be accessed. Sounds strange right? Well yes it does if you come from a windows environment, where the entire operating system is consolidated onto a single drive. However, with linux and the ability to mount devices as directories, it gives the end user much greater flexibility in splitting up their operating system over several drives or partitions. Here we go -

Search|Grep

Ubuntu 11.10 days to go

Subscribe
Email Address:

Find us on Facebook

Linoob.com Linux Simplified For Newbies


Like 891 people like Linoob.com Linux Simplified For Newbies.

Freesiete

Armando

Linux

Curro Linoob Linux Facebook social plugin

Linux

Categories
Applications Accessories Internet

/
This is the root folder, all other folders come under root.. think of it as C: in a Windows context. The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system.

Office Programming Sound & Video

/bin
This folder contains all the user-essential binaries (programs) that are needed to administer and run your linux system, delete this folder and your system is broken. It contains commands that may be used by both the system administrator and by users, but which are required when no other filesystems are mounted.

System Tools Bash Basics Dual boot

/boot
This folder contains configuration files and other necessary files that are needed by the bootloader. Thus /boot stores data that is used before the kernel begins executing user-mode programs. This may include saved master boot sectors and sector map files.

Eyecandy Games Grahpics Idea

1 of 4

10/03/12 2:23 PM

Linoobs Guide to Ubuntu Filesystem Structure Linoob.com

http://www.linoob.com/2012/03/linoobs-guide-to-ubuntu-filesystem-stru...

/dev
This folder contains special or device files. Be careful while working with it. Look through this directory and you should hopefully see hda1, hda2 etc. which represent the various partitions on the master drive of the system. It is a very interesting directory that highlights one important aspect of the Linux filesystem everything is a file or a directory.

Install News Operating System PPA Review System Administration Preferences Tips and Tricks

/etc
This folder contains all the configuration files used by the system, you can also start and stop services from here. It contains the following : opt Configuration for /opt X11- Configuration for the X Window system (optional) sgml- Configuration for SGML (optional) xml- Configuration for XML (optional)

Tags
Canonical

download

Eyecandy

FOSS

/home
This folder contains the home folders of all the normal (non root ) users on the system .. think of it as my documents in windows. It is clearly a site-specific filesystem & setup will differ from host to host.

gnome Gnome 2.32


install Installation Internet karmic koala KDE Kubuntu Kubuntu 10.10
Google

/lib
This folder contains essential shared libraries and kernel modules. This directory contains those shared library images needed to boot the system and run the commands in the root filesystem, ie. by binaries in /bin and /sbin.

linux lucid lucid lynx


Maverick Meerkat
Multimedia Music Natty

/media
This is a mount point for removable media. This directory contains subdirectories which are used as mount points for removeable media such as floppy disks, CDroms, thumb drives etc.

Narwhal Office openoffice

opensource open
source Operating System oracle

/mnt
This is a mount point for a temporarily mounted file-systems. This directory is provided so that the system administrator may temporarily mount a filesystem as needed. The content of this directory is a local issue and should not affect the manner in which any program is run.

ppa ubuntu ubuntu


9.10 ubuntu

10.04

/lost+found
Sometimes your system might crash or a power failure might take the machine down. Either way, at the next boot, a lengthy filesystem check will be done. Fsck will go through the system and try to recover any corrupt files that it finds. The result of this recovery operation will be placed in this directory.

ubuntu 10.04 lts

Ubuntu 10.10
Ubuntu 10.10 Maverick Meerkat ubuntu

/opt
This folder contains add on softwares. A package to be installed in /opt must locate its static files in a separate /opt/<package> or /opt/<provider> directory tree, where <package> is a name that describes the software package and <provider> is the providers registered name.

11.04 Ubuntu 11.04


Natty Narwhal Ubuntu

11.10 Ubuntu 12.04 Ubuntu


Eyecandy Ubuntu Office Suite
Ubuntu Studio Ubuntu Tweak Unity

/sbin
This folder contains binaries that can only be run as the root user (superuser).

Video windows

/tmp
This folder contains temporary files that are created while browsing, video buffering, system updates etc. and all the data is erased on reboot.

Blogroll
aBHi 247 FOSS Powered

/usr
This folder and its subfolders contains user installed programs, utilities and libraries. Utilities used for system administration (and other root-only commands) are stored in /sbin, /usr/sbin, and /usr/local/sbin. /sbin contains binaries essential for booting, restoring, recovering, and/or repairing the system in addition to the binaries in /bin.

HarryJerry.com Planet Ubuntu Unique Learning Concept

/var
The /var contains data that is changed when the system is running normally. It is specific for each system, i.e.,

2 of 4

10/03/12 2:23 PM

Linoobs Guide to Ubuntu Filesystem Structure Linoob.com

http://www.linoob.com/2012/03/linoobs-guide-to-ubuntu-filesystem-stru...

not shared over the network with other computers.

/run
This directory contains all the run time data a system administrator need while working. Everything is in one place making it easy for control purposes.

/root
This folder contians the root users files. The root accounts home directory may be determined by developer or local preference, but this is the recommended default location.

/proc
This is a psuedo folder, that contains information about the linux kernel and hardware that is updated in realtime.

/srv
It contains data for services provided by this system. /srv contains site-specific data which is served by this system. Now, things are clear in front of you what different directories are there and what are their functions. All these collectively make the Ubuntu (Linux) Filesystem. We can actually mount a seperate hard drive for each of these directories. For example, your /home can be put on another hard-drive than your / which means that you can easily recover your personal files if the harddrive on / fails because the harddrive mounted to your /home folder is seperate from the one that is mounted to your /. Simlarly /boot can also be made a separate paritition. It helps in easy management of bootloaders in dual-boot scenarios. [Image Courtesy - Linuxconfig.org] Njoy !

Author : Cell aka Abhishek


A Technology Fanatic, Open-source lover, a future Entrepreneur, & an Innovative thinker is presently a Systems Engineer at Infosys.

Posted in Administration, Bash, Basics, System

No Comments

Tags: Directory Structure, Filesystem, Filesystem Hierarchy Standard, FOSS, linux, Linux Filesystem, opensource, ubuntu, Ubuntu Filesystem

Like

Add New Comment

Login

Showing 0 comments
M Subscribe by email S RSS

Trackback URL

ChocoTheme by .css{mayo} | powered by WordPress

3 of 4

10/03/12 2:23 PM

Linoobs Guide to Ubuntu Filesystem Structure Linoob.com

http://www.linoob.com/2012/03/linoobs-guide-to-ubuntu-filesystem-stru...

Entries (RSS) and Comments (RSS)

4 of 4

10/03/12 2:23 PM

Anda mungkin juga menyukai