Section 12 ch. 15 Working with the cli Flashcards
What is the command in the CLI terminal to format a hard drive?
format and the hard drive letter and then the type of file system
Ex.- format C: /FS:NTFS
How what switch allows you to format a disk fast? and what would the full command look like?
the Q switch and it would be format C: /FS:NTFS /Q
what does chdsk do?
performs error correction on hard drives, scans the health of the disk, garbage collection,
What do (SFC) System file checker and (DISM) Deployment Image Servicing and Management do?
Take a look at the system storage, the backup files and check them against the working copy
When checking system storage and backup files which one do you run first SFC or DISM
System File Checker (SFC) - its going to look at your backup storage and compare the working files storage
When do you run (DISM) Deployment Imaging and service management do?
You run DISM when the backup storage and files may be corrupted
How do you run sfc in the command line?
type in the command sfc /scannow
How do you run DISM on the command line?
dism /online /cleanup-image /restorehealth
What is diskpart? and how do you start diskpart in the command line?
Wipes hard drives, creates partitions, formats drives and type in diskpart
What is the first command you do with diskpart?
run “list disk” command to see the disks
What is xcopy?
Allows you to copy files and directories and allows you to verify the data while its being copied
What is robocopy?
A faster version of xcopy
How do you run robocopy or xcopy in the command line?
Type in the name of the command then the drive you want to copy, what you want do, the drive where it will be copied and any switches
EX.
robocopy c:\backup x: add any switches you like
xcopy is the same
whats the command that allows you to copy files in linux
the “dd” command
What do gpupdate and gpresult do?
Forces policy updates to a system and lists the resultant policy
Whats the command to update repositories on Linux?
sudo apt-get update