---
title: Cd (command)
slug: cd-command
qid: 
snapshot: enwiki-001378833365
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1378833365
tags: [109364741, 109364742, 109369725, 109369726, 20363044, 22932022, 22932023, 23118434, 23603337, 25569938, 40645247, 58484671, 63265896]
---

# Cd (command)

> [!note] Provenance
> Snapshot `enwiki-001378833365` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1378833365> · Licensed CC BY-SA 4.0

is a shell command that changes the working directory. It is available in many shells and other applications that maintain a working directory. In some contexts, the command can perform actions other than change directory. Some environments provide the change directory feature via a different command name such as .

is a shell command that changes the working directory. It is available in many shells and other applications that maintain a working directory. In some contexts, the command can perform actions other than change directory. Some environments provide the change directory feature via a different command name such as . user@wikipedia:~$ ls workreports games encyclopedia text.txt user@wikipedia:~$ cd games user@wikipedia:~/games$ A similar session in Command Prompt might look like: C:\> dir workreports Wed Oct 9th 9:01 games Tue Oct 8th 14:32 encyclopedia Mon Oct 1st 10:05 text txt 1903 Thu Oct10th 12:43 C:\> cd games C:\games>
