Please explain the file structure of linux?

Answer Posted / chandragouda

The Linux system contains thousand of files located within
many directories. All directories are organized in a
tree-structure like manner.

* The 'trunk' of the tree is the root directory.
* The root directory is simply identified as a "/".
* All other directories 'branch' off from the trunk.

The following lists the most common directories and their
intended contents.

* / - root directory
* /home - where directories are contained for each user,
example:
* /usr - pronounced 'user' and contains Linux commands
and utilities
o /bin - binary executable programs
o /lib - program libraries, similar to Windows
'dll' files
o /sbin - more executable programs and Linux
utilities for administrative purposes
o /doc - documentation
o /src - source code to programs
* /tmp - temporary work files
* /etc - configuration files
o /rc.d - scripts used during boot and shutdown
process
o /sysconfig - default configuration files
o /sysconfig/network-scripts - network scripts
o /sysconfig/daemons - special programs that run
in background, such as print spooling
* /bin - binary executable programs that all users need
* /dev - device files that control drives, terminals and
any equipment attached to the server
* /var - user specific files
o /log - log files containing system usage and errors
o /spool - where spooled files are stored during
print spooling process
o /mail - where Email files are stored until
retrieved by client Email program
* /proc - system files
* /root - root's home directory
* /opt - other options
* /sbin - more executable programs and utilities

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is unix same as linux?

443


How to exit from vi editors?

468


Can linux get viruses?

458


What is echo $? In linux?

449


What is a semaphore c?

482






Has linux ever been hacked?

442


What is the best linux book for beginners?

422


Can you give a detailed explanation on how the boot process of the linux version you like happens?

470


What is the maximum length for any file name under linux?

486


What is the basic difference between bash and dos?

571


What is curl used for in linux?

453


How do I put games on playonlinux?

447


How do I go back in linux terminal?

485


How do I stop a linux script from command line?

438


how do you list and flush all ip tables in linux?

453