dos command change directory cd .

  • Thread starter Thread starter viensdansmavie
  • Start date Start date
V

viensdansmavie

what is this command cd .
it is not give a error message and it doesn't anything.
what is this cd and one point cd .
 
what is this command cd .
it is not give a error message and it doesn't anything.
what is this cd and one point cd .

----------------------------------------------------------------------------------------------------------------

Ah, those were the days! In dos, "cd" meant change directory. Wish I
could use some of the dos commands in Vista.

Bill
 
The period is shorthand for the current directory. Normally in Windows it
isn't used. In *nix it's used a lot.
 
what is this command cd .
it is not give a error message and it doesn't anything. what is this cd
and one point cd .

'cd' is 'change directory'.
'cd' changes to home directory.
'cd .' changes to the current directory - i.e. where you alread are - not
very useful.
'cd ..' changes to the parent directory - i.e. one level up.
 
viensdansmavie said:
what is this command cd .
it is not give a error message and it doesn't anything.
what is this cd and one point cd .

"cd" is "change directory". "." means the current directory, and ".."
means the parent directory. So "cd ." means "change to the current
directory". Since you're already there, that means you've told the
machine to do nothing and that's what it's doing.
 
ray said:
'cd' is 'change directory'.
'cd' changes to home directory.

That's Unix (and presumably Linux) behavior. Those systems have the
concept of a home directory for each user. Windows doesn't have that
concept, and AFAIK, using CD without any destination does nothing.
 
Tim Slattery said:
That's Unix (and presumably Linux) behavior. Those systems have the
concept of a home directory for each user. Windows doesn't have that
concept, and AFAIK, using CD without any destination does nothing.

CD and CD. do nothing on Linux, either.
 
Tim Slattery said:
That's Unix (and presumably Linux) behavior. Those systems have the
concept of a home directory for each user. Windows doesn't have that
concept, and AFAIK, using CD without any destination does nothing.

--
Tim Slattery
MS MVP(Shell/User)
(e-mail address removed)
http://members.cox.net/slatteryt

CD\ takes you back to the root directory.
 
ray said:
Actually, using CD on *nix generally generates a 'command not found'
error.

Almost missed that one. Unix systems are case sensitive, you have to
type the command in lower case.

cd
 
On Mon, 28 Sep 2009 20:57:31 -0700, Gene E. Bloch
You can't post in here without starting an argument

I beg to differ...

:-)

If you're serious: I tried cd without arguments in a command window
before I posted, rather than take a chance on my memory (or the
possibility of a change since I last did it, three or four versions
ago).
 
I beg to differ...

If you're serious: I tried cd without arguments in a command window before I
posted, rather than take a chance on my memory (or the possibility of a
change since I last did it, three or four versions ago).

I just reread your post. My slowness at getting your pun embarrasses
me.

I shall recover, though. Maybe :-)
 
Back
Top