Answer: 'cd' stands for change directory and is used to change the current directory on which the user is working.

cd syntax : $ cd {directory}

Following purposes can be served with 'cd' commands:

  • Change from current to a new directory
  • Change directory using the absolute path
  • Change directory using the relative path

Few of the 'cd' options are enlisted below

  • cd~: Brings you to the home directory
  • cd-: Brings you to the previous directory
  • . : Bring you to the parent directory
  • cd/: Takes you to the entire system's root directory

This free site is ad-supported. Learn more