1.2 given A Scenario, Use The Appropriate Microsoft Command Line To Flashcards
cd (change directory) purpose
Changes the current directory to a specified directory
Usage of: cd \
Changes to the root directory
Usage of: cd ..
Moves up one directory level
Usage of: cd foldername
Changes to a sub directory named “foldername”
Purpose of: dir (directory)
Display a list of files and subdirectories in the current directory
Usage of: dir
Lists all files and folders
Usage of: dir /a (attributes)
Includes hidden and system files in the listing.
The /a switch in the DIR command, stands for attributes and allows you to display files with specific attributes. When used without specifying any attributes, it display all files, including hidden and system files.
You can also use the backwards/a followed by specific attribute codes to filter the display like this dir /a:h lists only hidden files since h: hidden files
Purpose of: md or mkdir (make directory)
Creates a new directory
Usage of: md newfolder or mkdir newfolder
Create a directory called “newfolder”
Purpose of: rmdir or rd (remove directory)
Deletes an existing directory
Usage of: rmdir newfolder or rd newfolder
Remove the directory named “newfolder”
Purpose of Drive navigation inputs
Switches between different drives
Usage of C: and D:
Switches to the C: Drive and D: drive, respectively
Purpose of ipconfig
Displays network configuration details
Usage of ipconfig
Shows basic IP address, subnet mask, and default gateway