What Does Cd Command Do in Unix?
Contents

The change directory (cd) command is built into the system shell and changes the current working directory. The cd command can be used to either change to a directory that is relative to the the location of the current working directory or to an absolute location in the filesystem.

What is cd used for in Linux?

The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files.

What does cd do in terminal?

The cd command allows you to move between directories. The cd command takes an argument, usually the name of the folder you want to move to, so the full command is cd your-directory .

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest