This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Sunday, 11 August 2013

Directory Commands in Unix (mkdir, cd)

Unix file system representation will be in the form of Directories. The first and the default directory in the directory hierarchy is root. This directory is represented by 'slash ( / )'. And all the directories we create will be placed under this directory. The following figure shows the sample directory hierarchy.

Directory Structure of UNIX
 In the above figure root directory contains ten sub directories which will be available as part of Unix installation. The directories that we create will be placed under "Home". Remaining all will be explained as part of UNIX file system. The following are the commands used to work with directories.

mkdir Command:

This command is used to make a directory(mk-dir). By using this command we can make directories. This command will not give any output. The following is the syntax of mkdir command;

# mkdir UNIX
#
When we type the above command in the UNIX terminal, it will make Directory named UNIX. This directory will be placed under '/home'. The absolute path of this directory is '/home/UNIX'.

cd Command:

This command is used to enter into the directory that we have created using the command 'mkdir'. The following example shows the usage of cd command:

# cd UNIX 
/home/UNIX#
When the cd command is executed it takes us to the concerned directory that we mentioned as part of command (UNIX in our case). Now all the operation you do will be saved under UNIX directory. 

pwd Command: 

PWD means Present Working Directory, This command is used to know about the directory in which we are in. When we execute this command, it shows the absolute path of the directory that we are working in. The following example shows the usage of this command.

# pwd
/home/UNIX