2

I'm a Linux user just starting to get the hang of Windows 7. How can one perform these functions with the Windows cd command:

  1. Go back to the previous directory (cd - in Bash)
  2. Go to the user's home directory (cd ~ in Bash)
  3. Bookmark a directory (not built into bash, but cdargs or DerB can be added)
studiohack
  • 13,477
dotancohen
  • 11,720

2 Answers2

2
1.  
C:\blah>pushd a
C:\blah\a>popd
C:\blah>


2. 
cd %userprofile%

3. 
C:\>doskey gocq=cd c:\cq
C:\>gocq <ENTER>
C:\cq>
barlop
  • 25,198
0

cd .. to go one level up

cd \ to go to the root level of the drive

cd %UserProfile% to go to the equivilent of /home - its c:/users/username in windows 7

Journeyman Geek
  • 133,878