Unix Basics

Unix Dir Structure

Directory Description
/ Primary hierarchy root and root directory of the entire
file system hierarchy.
/bin/ Executable binary command files.
/dev/ Has nodes for devices , hard disk , tape etc
/etc/ Host-specific  configuration files  such as
/etc/inittab , /etc/hosts
/home/ Users’ home directories  .
/lib/ Libraries  needed  by various Unix programs.
/mnt/ Temporary file system mount point .
/opt/ Optional application software packages installation
directory .
/proc/ Virtual file system having kernel process files .
/sbin/ system binaries files such as  init .
/tmp/ Temporary file system used to store temporary data of
programs .
/usr/ user related command , programs , librar

/usr/bin/

Binary commands for all users .

/usr/include/

Include  files required by programs..

/usr/lib/

Libraries for the binaries in /usr/bin/ and /usr/sbin/.

/usr/sbin/

system binaries for users .

/usr/share/

shared file system

/usr/src/

Source code files

/usr/local/

Optional user programs and packages are installed here .
/var/ Directory to store dynamic files such as logs . Most
programs has /var as default location for writing  log , lock and
spool fies .

/var/lock/

Lock files.

/var/log/

Log files.

/var/mail/

Users’ mailboxes.

/var/spool/

Spool for tasks waiting to be processed (e.g. print queues
and unread mail).

Unix commands — Next

Pages: 1 2 3

Leave a Reply

Comments will be published after approval by Moderator.