How to Access Top Level Folder Using Command Prompt

Table of contents:

How to Access Top Level Folder Using Command Prompt
How to Access Top Level Folder Using Command Prompt
Anonim

The "Command Prompt" is a very powerful tool that allows, among other things, to navigate between files and folders stored on a Windows computer. If you need to level up from the current workbook (i.e. revert to the previous directory), the process to follow is very simple. This article explains how to access the folder containing the current working directory using the Windows "Command Prompt".

Steps

Go Back Using the Command Prompt Step 1
Go Back Using the Command Prompt Step 1

Step 1. Open a "Command Prompt" window

Normally, you will simply have to type the keyword "prompt" into the Windows search bar and select the program icon from the list of results that will appear.

Go Back Using the Command Prompt Step 2
Go Back Using the Command Prompt Step 2

Step 2. Type the name of the file you want to view

The "Command Prompt" allows you to view the contents of any file in the form of simple text by typing the full path (usually made up of a series of folders on the computer hard drive) and the file name including the extension.

Go Back Using the Command Prompt Step 3
Go Back Using the Command Prompt Step 3

Step 3. Type the command

cd.. inside the "Command Prompt" and press the key Enter. In this way, you will indicate to the program that you want to access the previous folder with respect to the current working directory, that is, the folder located at a higher level than the current one.

It is important to include the single colon in the command as well, since you cannot access any folder using just the "cd" command

Go Back Using the Command Prompt Step 4
Go Back Using the Command Prompt Step 4

Step 4. Type the command cd / to immediately return to the root folder of the "Command Prompt"

If you need to immediately switch from the current working folder to the root of the "Command Prompt", ie the root directory of the current storage drive (for example, in the case of the system hard drive, to the "C: / "), you can use the given command.

Recommended: