How do I cd to a directory?

Krabe

Member
Nov 29, 2017
236
265
Change dir? Do u mean the consone comand "cd"?
You are on Шindows, i presume?
Then RTFM, then type(in console) "cd c:\Program Files (x86)"(without quotes) if your desired dir is Program Files (x86) on disk C. If you want another directory, type it instead. That is easy.
If your desired directory is not on disc C - for example "F:\Program Files (x86)", then after "cd F:\Program Files (x86)" you shall type "F:" in next line, to change disk. Or type it before. Result be same.
Now you can do something in this dir, via console.

Also you can open directory in explorer and press shift button, nexh right mouse click inside the folder andselect"Open Command Window Here".
 

Göffel

Newbie
Mar 4, 2018
61
31
a) open a console/ terminal and type:
Code:
cd /?
b) read it up : here's all of them commands documented:
EDIT: dang, the lifewire article did not really document most commands, only listed them. Instead go to the source:
/EDIT

which is not the best solution, as many of them are highly specific and never needed by "normal people"/ for "normal purposes", but for looking up one or two specific commands - fine.
---------------

when I first started with computers myself, I did so with Suse Linux 4.2.
The best thing about it was: it came with a book, documenting most common commands (and bash itself).
 
Last edited:

Eoin

The Bug Hunter
Moderator
Donor
Feb 21, 2017
1,233
4,880
cd means change to a directory

Open your command line and just type: cd C:\PathToFile
C = example of directory, could be F:/ G:/ H:/