Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Navigating the Windows file system is a fundamental skill for any systems engineer or IT professional. While graphical user interfaces (GUIs) like Windows Explorer provide a user-friendly way to browse files and folders, understanding how to use the Command Prompt (CMD) for navigation can enhance your efficiency and provide more control over file management tasks. This article will guide you through the basics of navigating the Windows file system using CMD.
Examples:
Opening Command Prompt:
Win + R
, type cmd
, and hit Enter
.Viewing the Current Directory:
cd
(change directory) command to view or change your current directory.cd
and press Enter
to display the current directory.Listing Files and Directories:
dir
command to list files and directories in the current directory.dir
and press Enter
. This will display a list of all files and folders in the current directory.Changing Directories:
cd
command followed by the path.cd C:\Users\YourUsername\Documents
changes the directory to the Documents folder.Navigating Back to the Previous Directory:
cd ..
to move up one directory level.C:\Users\YourUsername\Documents
, typing cd ..
will take you to C:\Users\YourUsername
.Accessing a Specific Drive:
D:
switches to the D drive.Using Absolute and Relative Paths:
cd C:\Program Files
.C:\Users
, typing cd Documents
will take you to C:\Users\Documents
.Creating and Removing Directories:
mkdir
followed by the directory name.mkdir NewFolder
creates a folder named NewFolder in the current directory.rmdir
followed by the directory name.rmdir NewFolder
removes the NewFolder directory.Clearing the Screen:
cls
command to clear the Command Prompt screen.cls
and press Enter
to clear the screen.By mastering these commands, you can efficiently navigate and manage files and directories in the Windows environment using the Command Prompt.