Saturday 21 May 2011

cd command


Brief: The command cd itself implies change directory. The cd command is used to navigate from one directory to anaother.

 Syntax: cd directoryName

Command: cd movies

Description:
If the user is currently working in /home/user/ directory and want to navigate to a directory name 'movies' then user can use cd movies command

cd ..
The cd command can also be used to navigate to a parent directory of the present working directory.
For ex: User is currently working in /home/user/movies directory and wants to navigate to /home/user/
then cd .. command will do.

Importand Examples

1. User can navigate to a directory by specifying its complete path
cd /home/user/movies/2011/english
cd ../../2010/english

No comments:

Post a Comment