Please explain the file structure of linux?

Answers were Sorted based on User's Feedback



Please explain the file structure of linux?..

Answer / senthilp

root - The home directory for the root user
home - Contains the user's home directories along with
directories for services
ftp
HTTP
samba
george
bin - Commands needed during bootup that might be needed by
normal users
sbin - Like bin but commands are not intended for normal
users. Commands run by LINUX.
proc - This filesystem is not on a disk. It is a virtual
filesystem that exists in the kernels imagination which is
memory.
1 - A directory with info about process number 1. Each
process has a directory below proc.
usr - Contains all commands, libraries, man pages, games
and static files for normal operation.
bin - Almost all user commands. some commands are in /bin
or /usr/local/bin.
sbin - System admin commands not needed on the root
filesystem. e.g., most server programs.
include - Header files for the C programming language.
Should be below /user/lib for consistency.
lib - Unchanging data files for programs and subsystems
local - The place for locally installed software and other
files.
man - Manual pages
info - Info documents
doc - Documentation
tmp
X11R6 - The X windows system files. There is a directory
similar to usr below this directory.
X386 - Like X11R6 but for X11 release 5
boot - Files used by the bootstrap loader, LILO. Kernel
images are often kept here.
lib - Shared libraries needed by the programs on the root
filesystem
modules - Loadable kernel modules, especially those needed
to boot the system after disasters.
dev - Device files
etc - Configuration files specific to the machine.
skel - When a home directory is created it is initialized
with files from this directory
sysconfig - Files that configure the linux system for
devices.
var - Contains files that change for mail, news, printers
log files, man pages, temp files
file
lib - Files that change while the system is running
normally
local - Variable data for programs installed in /usr/local.
lock - Lock files. Used by a program to indicate it is
using a particular device or file
log - Log files from programs such as login and syslog
which logs all logins and logouts.
run - Files that contain information about the system that
is valid until the system is next booted
spool - Directories for mail, printer spools, news and
other spooled work.
tmp - Temporary files that are large or need to exist for
longer than they should in /tmp.
catman - A cache for man pages that are formatted on demand
mnt - Mount points for temporary mounts by the system
administrator.
tmp - Temporary files. Programs running after bootup should
use /var/tmp.


Is This Answer Correct ?    21 Yes 1 No

Please explain the file structure of linux?..

Answer / 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

More Linux General Interview Questions

What is the difference between spinlock and mutex?

0 Answers  


which files are called for user profile by default when a user gets login in linux?

0 Answers   UGC Corporation,


Can I install linux on windows?

0 Answers  


what is inode number in linux operating system?

0 Answers  


How do I kill an application in linux?

0 Answers  






What is a spinlock in linux?

0 Answers  


how to find out shared file&dir of FTP ? is there any command for find out are any other way we have? tell me with example?

3 Answers   IBM, NTA, Wipro,


How do you get full path of a file in Linux?

0 Answers  


What linux should I use?

0 Answers  


What is the path of network (ethx) configuration files

0 Answers  


You have a large spreadsheet located in the /data directory that five different people need to be able to change. How can you enable each user to edit the spreadsheet from their individual home directories?

0 Answers  


What is the structure of linux?

0 Answers  


Categories