Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9298273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:16:55+00:00 2026-06-18T22:16:55+00:00

I am trying to understand why would anyone use cd . the cd ..

  • 0

I am trying to understand why would anyone use cd .
the cd .. command will take you to your parent directory.
the cd command will take you to your home directory
the cd . takes you to your ‘pwd’

I can see a use for the first two, but none for the last one.
Anyone can share their experience with cd .?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T22:16:57+00:00Added an answer on June 18, 2026 at 10:16 pm

    cd . is seldom useful, but . has many uses. For instance, some versions of find require the directory argument and don’t set it to . as the default, so you have to type find .. Or to run a script from ., you’d do ./script.sh. Or to list the permissions on the current directory, you can do ls -ld ..

    The one use I’ve ever had for cd . is if the directory you’re in has been deleted and recreated. Many commands start mysteriously failing until you type cd . to go to the “new” incarnation of the directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand why one would use Spring Batch over a scripting language
I'm trying to understand how to use Json-RPC calls in Google Go that would
OK, this is minefield, but trying to understand why one would pick .NET (or
I'm trying to understand how my sub domain would still fetch data from the
I am trying to understand how a single and multidimensional javascript array would appear
So I am trying to understand OOP more and use it. The following code
Why would anyone want to not use a code behind file so that server
I'm trying to understand how to properly use mod_rewrite. I have posts in my
I'm trying to understand operator overloading in C++, and can see the usefulness when
I am trying to self teach myself C# and wondering if anyone can help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.