# What is the difference between CD and CD?

The command cd changes directories. So cd . does nothing special (you go to where you are), etc. All unix shells require commands and their arguments to separated by whitespace, so cd... is not the cd command, and doesn't exist.

Bron: [What is the difference between `cd ..`, `cd .`, and `cd ...`? What ...](https://unix.stackexchange.com/questions/757368/what-is-the-difference-between-cd-cd-and-cd-what-can-they-do-r#:~:text=The%20command%20cd%20changes%20directories,%2C%20and%20doesn't%20exist.)

Toegevoegd: 2025-01-21
Webpagina: https://1001vragen.nl/vraag/what-is-the-difference-between-cd-and-cd

## What is the difference between cd and cd tilde?

The biggest difference between cd ~- and cd - is that ~- can be used in any command because it is part of the shells tilde expansion. The - shortcut can only be used with the cd command.

Bron: [The difference between cd - vs cd ~- - DEV Community](https://dev.to/pfreitag/the-difference-between-cd-vs-cd-14ej#:~:text=The%20biggest%20difference%20between%20cd,used%20with%20the%20cd%20command.)

## What does cd backslash mean?

For further clarification: In the OP's example, cd \ escapes the end-of-line (the Return key). This means that the terminal is still waiting for the rest of the command. The prompt > shows that it is waiting. The usual prompt shows the current directory, which is why it shows / after using cd / .

Bron: [What is the difference between "cd \" and "cd /" commands ... - Ask Ubuntu](https://askubuntu.com/questions/314737/what-is-the-difference-between-cd-and-cd-commands-in-ubuntu-terminal#:~:text=For%20further%20clarification%3A%20In%20the,shows%20%2F%20after%20using%20cd%20%2F%20.)

## What does cd minus do?

Next if we use cd –(tick, or minus symbol), this will take us back to the most recently changed from directory.

Bron: [Using the Linux cd command - InMotion Hosting](https://www.inmotionhosting.com/support/server/linux/using-the-linux-cd-command/#:~:text=Next%20if%20we%20use%20cd,most%20recently%20changed%20from%20directory.)

## What does the cd hyphen do?

The Meaning of – With cd A single dash as an argument for different commands may have different meanings. For instance, using a dash with a command like paste may lead to reading the standard input. But, using a dash as an argument of cd will change the current directory to the previous working directory.

Bron: [What Does cd – Do? | Baeldung on Linux](https://www.baeldung.com/linux/cd-with-dash#:~:text=The%20Meaning%20of%20%E2%80%93%20With%20cd,to%20the%20previous%20working%20directory.)

## Verwante vragen

- [What is the main difference between a normal SQL injection and a blind SQL injection vulnerability?](https://1001vragen.nl/vraag/what-is-the-main-difference-between-a-normal-sql-injection-and-a-blind-sql-injection-vulnerability.md)
- [What is the difference between discrete and non discrete manufacturing?](https://1001vragen.nl/vraag/what-is-the-difference-between-discrete-and-non-discrete-manufacturing.md)
- [What is the difference between Southern rock and country rock?](https://1001vragen.nl/vraag/what-is-the-difference-between-southern-rock-and-country-rock.md)
- [What is difference between director and managing director?](https://1001vragen.nl/vraag/what-is-difference-between-director-and-managing-director.md)
- [What is the difference between technology in education and the technology of education?](https://1001vragen.nl/vraag/what-is-the-difference-between-technology-in-education-and-the-technology-of-education.md)
- [What is the difference between case and decode in Oracle?](https://1001vragen.nl/vraag/what-is-the-difference-between-case-and-decode-in-oracle.md)
- [What is the difference between light rail and heavy rail?](https://1001vragen.nl/vraag/what-is-the-difference-between-light-rail-and-heavy-rail.md)
- [What is difference iOS and Android?](https://1001vragen.nl/vraag/what-is-difference-ios-and-android.md)
- [What does CD mean in crime?](https://1001vragen.nl/vraag/what-does-cd-mean-in-crime.md)
- [Why is a CD 74 minutes long?](https://1001vragen.nl/vraag/why-is-a-cd-74-minutes-long.md)
