You might have recently discovered cmd and are looking to learn more about cmd’s commands like, “How to navigate to folder?”, “How to view folders inside folders?”, “Which command to use to run files?”. You have come to the right place!
Command prompt, also known as cmd, is the command line interpreter app which is available in default on Windows OS. We can execute certain codes/commands in this application to do certain tasks. This can be interpreted as a command based file explorer or file explorer to be cmd based GUI.
Let’s get right on to the point!
Changing Folders: cd command
The “cd” command is used to display which directory(folder) you are currently in or change your current directory to a new one.
- Display current directory:
- Go to directory(folder):
- Go back to parent directory:
- Go to folder inside folder:
- Go back twice:
This should solve your “cmd How to navigate to folder?” question but don’t you want to view what’s inside the folder? Look no further!
Viewing Folder Details: dir command
The “dir” command is used to display the details in a directory. It shows sub-folders and files inside a folder.
- Display folder details:
- Display files/folders names starting with certain letter(s):
- Display files/folders names ending with certain letter(s):
- Display files/folders names containing certain letter(s):
- View hidden files/folders:
- View read-only files/folders:
- View folders only:
To open or run files from cmd itself, you simply need to write the filename and its file type.
- View text file:
- View image file:
Viewing command features
This is one of the most important command in cmd which displays the information about command like what it does, what features it has and how it works.
- View “dir” information:
- View “cd” information:
Test them out with any commands and learn more!
Command Prompt has many functionalities. We just hit the tip of the iceberg by covering the very basics of how we could navigate, view and run files/folders. Check out our other tutorials on cmd below!
Co-owner of Technoloxy. Love tech and football. Also don’t mind some basketball. Also, tech.
Did I mention tech?