cd: Change Directory in Linux & Unix

The cd command is abbreviation for change directory. The cd command is used to change the current working directory/folder to another/specific directory/folder.

1. Change to another directory from parent directory

# pwd
/
# cd /home
# pwd
/home

2. Change to another directory from current directory

# pwd
/home
# cd /../oracle
# pwd
/oracle

3. Change to parent directory.

# cd /

4. Move up one directory.

# pwd
/oracle/itsiti
# cd ..
pwd
/oracle

You May Also Like

Leave a Reply?