For your first command, you will learn how to see what files and folders are in your working directory. To display the contents of your current directory, use the
In Command Prompt, type
DIR and press enter.
For the above screenshot, I changed my working directory first because I don’t want to paste my documents to the internet. You will learn how to change your working directory in the next section. When you entered the
DIR command, you should have gotten a similar list of file names and other details.
Points you should know:
- Capitalization does not matter in Command Prompt. This is because file/folder names must be unique, regardless of capitalizations. Command names are unique too. So you can type
dirin lowercase or uppercase.
- Almost all files have a filename extension in the name. This is usually three letters after a period. For example,
flyer.pdfhas a file extension of
- In every directory, you’ll see another directory called “.”, specified by the “<DIR>” output. The single dot name means the current working directory, and you likely won’t ever use that.
- You’ll also see a directory called “..”. This double dot name means the directory above the current. You will use this in the next section.