15 Practical Examples of ‘cd’ Command in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

20 Responses

  1. madhav says:

    When i am running the following command, i am going back to root folder /root.

    # [email protected]:/usr/local$ cd --    

    is that correct.

  2. Sushant Joshi says:

    4. (a) Move one directory back from where you are now

    Hello sir, I am new to Linux as well, but as far as I have read cd- means not move to one directory back but move to the directory where you had previously been working.

    Let me know if I am wrong thanks ! :)

    • Ravi Saive says:


      Thanks for pointing out, yes you was correct, cd –, means switch back to directory where you working earlier.. Corrected in the article..

  3. Soli says:

    Thanks alot man i really enjoy persuing your contents.

  4. Rajveer singh says:

    Very nice and simple example thanks

  5. sumit sharma says:

    very nice note, thank you sir.

  6. Nina Fox says:

    I am a student of BS Honor software engineering, but i am very much interested in learning Linux. I am working with a Web Hosting company as well, so you can imagine how important it is for me to learn Linux in order to go up the ladder.

    This website is just awesome. I am loving it. I was looking for a collection that can take me from beginner to expert and you have it all in a compiled form.
    God bless you.

  7. Andrej says:

    At last, a website that:
    1) doesn’t just copy the documentation
    2) few words, more practical examples
    3) examples covering plenty of “what if I want..”
    4) step-by-step + logical learning order

    Liked, subscribed. You have a new regular.
    Thanks a lot, guys!

  8. Giovane says:

    Thank you very much !!! (Thanks)

  9. Omipenguin says:

    Two new things I learned in this article Pushd and Popd


Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.