Showing Files

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 DIR command.

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 dir in lowercase or uppercase.
  • Almost all files have a filename extension in the name. This is usually three letters after a period. For example, flyer.pdf has a file extension of pdf. Windows uses this part of the name to know which program to open the file in when you click it.
  • 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.

Prev ————————– Next

Leave a Reply

Your email address will not be published.