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 .?
cd .is seldom useful, but.has many uses. For instance, some versions offindrequire the directory argument and don’t set it to.as the default, so you have to typefind .. Or to run a script from., you’d do./script.sh. Or to list the permissions on the current directory, you can dols -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 typecd .to go to the “new” incarnation of the directory.