Linux File System

 

File System

Linux treated everything as a file. Ever a directory is treated as a file and contains entries for several other files. All the hardware devices, such as (input/output) I/O devices, storage devices, etc. are all treated as files.

The Linux file system is organised in a hierarchy which start with the root directory. The root directory is represented by forward slash (/) under the root directory there are several system directories and the name directory.

    • /bin: - This directory contains executable program file (binary file). This directory contains all the commands of Linux in the same way as all the commands of DOS are stored in the Command.Com file.
    • /dev: - This directory contains the special device files for example, the printer may be a file known as prn in this directory. The hard disk may be hda file and its first partition would be hda.
    •  /etc: - This directory contains all the system wise configuration information as text files.
    • /lib: - This directory contains the library files. Library files contain the reusable functions and routines for the programmer to use.
    • /tmp: - This directory contains all the temporary files, which will be deleted from the system.
    • /usr: - This directory contains the home directories of the users there is one home directory for each other.
    • /kernel: - This directory contains all the kernel specific codes. Kernel is the heart of the Linux system. It is responsible for resources allocation security and low level hard ware interfaces.
    • /mnt: - This is the directory where the storage devices other than the hard disk (floppy disk and CD) are mounted. This directory contains the sub directories ‘floppy’ and ‘cdrom’ which when these devices are mounted show the contents of the CD-ROM of floppy disk, respectively.

 

Comments

  1. Good post for basic knowledge of computer and some other stuffs

    ReplyDelete
  2. I think people should visit this website to gain the basic knowledge

    ReplyDelete

Post a Comment

Popular posts from this blog

Difference between Compiler and Interpreter

History of Computers