Les 11A Flashcards
You want to list all files and directories in the current directory. Which command do you use?
dir
You need to change the current working directory to a specific folder. Which commands can you use?
cd
or chdir
You are in a folder and need to move to its parent directory. Which command do you use?
..
You need to create a new directory named “Projects”. Which command do you use?
md Projects
or mkdir Projects
You need to delete an empty directory named “OldFiles”. Which command do you use?
rd OldFiles
or rmdir OldFiles
You need to reference the primary storage drive on your Windows computer. How do you do this?
Use the drive letter followed by a colon, e.g., C:
.
You need to find out the hostname of your device. Which command do you use?
hostname
You need to format the primary storage drive (C:). Which command do you use, and what should you be cautious of?
format c:
. Be careful, as formatting will erase all data on the drive.
You need to copy a file from one location to another and want to verify that the file is copied correctly. Which command and option do you use?
copy /v
You want to suppress the prompt asking for confirmation before overwriting a file when copying. Which command and option do you use?
copy /y
You need to copy an entire directory tree from the “Documents” folder to a backup location on drive M:. Which command and option do you use?
xcopy /s Documents m:\backups
You need a more robust copy solution for copying files and directories. Which command do you use?
robocopy
You need to force a Group Policy update on a computer. Which command do you use?
gpupdate /target:computer /force
You need to verify the Group Policy settings applied to a specific user. Which command do you use?
gpresult /user sgc/professor /v
You need to shut down a computer after a delay of 60 seconds. Which command do you use?
shutdown /s /t 60