pavement

Cd

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
The notable differences being that under unixlike OSes a space is required between '''cd''' and the name of the directory to change to and a forward slash '''/''' is used instead of a backward slash '''\'''
 
The notable differences being that under unixlike OSes a space is required between '''cd''' and the name of the directory to change to and a forward slash '''/''' is used instead of a backward slash '''\'''
  
eg.
+
C:\Windows> '''cd\stuff''' (windows)
 +
splat# '''cd /stuff'''    (unixlike)
  
cd\stuff  (windows)
+
C:\Windows> '''cd..'''    (windows)
cd /stuff (unixlike)
+
splat# '''cd ..'''        (unixlike)
 
+
cd..     (windows)
+
cd ..     (unixlike)
+
  
  
 
[[Category:Windows Equivalents]]
 
[[Category:Windows Equivalents]]

Revision as of 09:44, 6 September 2004

Under FreeBSD and other unixlike OSes, cd means just what it does under Windows - "change directory."

The notable differences being that under unixlike OSes a space is required between cd and the name of the directory to change to and a forward slash / is used instead of a backward slash \

C:\Windows> cd\stuff (windows)
splat# cd /stuff     (unixlike)
C:\Windows> cd..     (windows)
splat# cd ..         (unixlike)
Personal tools