OS CMD Tools Flashcards
Partitions disks
diskpart
Formatting a disk
format
Check a disk
chkdsk /f (fixes logical errors on disk) /r (locates bad sectors, recovers information
Make a Directory
md
Change a Directory
cd
Remove a directory
rd
Directory listing
dir (list files and directories)
Delete a file from a directory or disk
del names
Duplicate Files
copy /v (verifies that new files are written correctly) /y (suppresses overwrite prompts)
Extended copy
xcopy copies multiple files and dir trees source [destination]
Create a robust copy
robocopy functionally replaces xcopy, designed to handle NTFS file sys details
Task list
tasklist displays a list of currently running processes, local or remote device
Kill a task
taskkill terminates tasks by process id (PID) or image name
System File Checker
sfc /scannow - run the check, scan integrity of all protected system files
Shutdown a computer
shutdown