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
You initiated a shutdown with a countdown but need to cancel it. Which command do you use?
shutdown /a
You suspect that some system files are corrupted and need to scan their integrity. Which command do you use?
sfc /scannow
You need to fix logical file system errors on a disk. Which command do you use?
chkdsk /f
You want to locate bad sectors on a disk and recover readable information. Which command do you use?
chkdsk /r
You need to manage disk configurations and understand the risks involved. Which command do you start with?
diskpart
You need to quickly check the version of Windows you are running to ensure it is up to date. Which command do you use?
winver
You need to find out your computer’s IP address and the details of your network adapter. Which command do you use?
ipconfig
You need to see all active network connections on your computer. Which netstat command do you use?
netstat -a
You need to see the executable files (binaries) associated with each active network connection on your Windows computer. Which netstat command do you use?
netstat -b