Linux and Unix chdir command

Quick links

About chdir
Syntax
Examples
Related commands
Linux and Unix main page

About chdir

Changes directory.

Syntax

chdir [directory]

directoryName of the directory user wishes to enter.
cd ..Used to go back one directory on the majority of all Unix shells. It is important that the space be between the cd and the ..
cd -When in a Korn shell to get back one directory used to go back one directory.

Examples

chdir public_html

Changes the directory to public_html.

Related commands

cd
ls