Sunday, July 29, 2007

FILE SYSTEM IN LINUX


:Linux system Filesystem:




There are two types of File system in Linux.
1. Physical File System
2. Logical File System
.


1. Physical file System.
Physical file system means physical files available on Hard disk. E.g. C drive in windows & any directory name like /example in Linux.

2. Logical file system:
Logical file system Hierarchy is as shown above :
“/”

· “/” is called as root directory.It is the top of the file system structure
· All other directories are mounted under it.
“/root”
· This is the default home directory of administrator (i.e. root)

“/home”
· It contains all users home directory
.

“/boot”
· This directory contains the kernel the core of Operating System.

· This also contains the files related to booting the system such as the boot loader and the initial ramdisk.

“/sbin”
· It contains administrative commands used by superuser (i.e. root)


“/bin”
· This directory contains commands used by the superuser & the normal user.

“/usr”
· It contains the programs & applications which are available for users (similar to program files on windows.)

“/var”
· It contains variable information such as logs & print queues.

“/dev”
· This directory contains devices nodes through which the operating system can access hardware and software devices on the system.

“/etc”
· It contains all configuration files.

“/proc”
· This directory is a mount point for virtual information about currently running system process.

· This directory is empty until the proc file system is mounted.

“/tmp”
· This directory contains temporary files used by system
.

“/opt”
*It contains third party applications.
e.g. Corel word perfect.
Sun star office.

“/media”
- /media/cdRom
- /media/floppy

· It contains default mount points of removable media such as cdrom, floppy disk, pen drive.

“/lib”
* It contains library files need by number of different applications as well as Linux kernel.