EmbLogic's Blog

CD – Change Directory Command

CD – Change Directory Command
=============================
- cd means change working directory
- Prototype:
cd [-L | -P] [directory]
cd -
-If you do not give any directory to cd command, it will take you to home directory.
eg. cd –> It will go to home directory.
- For previous directory use :
cd ..
- Further for more than one previous directory use :
cd ../..
- Directory can be defined by 2 types :
i) Absolute filepath – Path starting from ‘/’.
eg. cd /usr/bin/
ii)Relative Filepath – Path relative to current directory
eg. cd /usr –> Absolute filepath
cd etc –> Relative Filepath

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>