The Windows Command Line Flashcards
1
Q
Privileges
A
-Not all users can all commands
- Standard privileges
- Run applications as normal user
- Administrative / elevated privileges
- Must be a member of the Administrative group
- Right-click Command Prompt, choose, Run as Admin
- cmd , ctrl+shift+enter
2
Q
Command Line Troubleshooting
A
- Use “help” if you’re not sure
- > help dir
- > help chkdsk
- Also use
- [command} /?
-Close the prompt with : EXIT
3
Q
DISKPART
A
- Troubleshooting storage devices
- Access to configure , format & make changes
4
Q
FORMAT
A
-Format a disk for use with Windows
5
Q
CHKDSK ( /f , /r )
A
- CHKDSK /f
- Fixes errors on the disk
- CHKDSK /r
- Locates bad sectors & recovers readable data
- Implies /f
-If volume is locked , run during startup
6
Q
DIR / DEL
A
- DIR
- List File Directories
- DEL
- Remove a file from a directory or disk
- Also called erase
7
Q
MD / CD / RD
A
- MD
- Make Directory
- CD
- Change Directory
- RD
- Remove Directory
8
Q
Copy ( /a , /v , /y )
A
- /v - Verifies that new files are written correctly
- /y - Suppress prompting to confirm
9
Q
XCOPY
A
-Copies Files & Directory trees
10
Q
ROBOCOPY
A
- Robust copy
- Better than XCOPY
-Included with Windows Vista , Windows 7 & Windows 8 / 8.1
11
Q
TASKLIST & TASKKILL
A
-Manage task from the command line
- TASKLIST
- Display a list of currently running processes
- Local or remote machine
- TASKKILL
- Terminates tasks by process ID ( PID) or image name
- TASKKILL /IM notepad,exe
- TASKKILL / PID 1234 / T
12
Q
SFC
A
- Scan integrity of all protected system files
- /SCANNOW - Scans integrity & repair files when possible
- /VERIFYONLY - Scans integrity & no repair is done
- /SCANFILE - Scans integrity , repair if problem indentifies
- /VERIFYFILE - Verifies the integrity of the file with full path
13
Q
SHUTDOWN
A
- Shutdown a computer
- Or optionally restart
- Shutdown = /s /t xx
- Wait xx seconds , then shutdown
- Shutdown /r /t xx
- Shutdown & restart after xx seconds
- Shutdown /a
- Abort a shutdown
14
Q
EXPAND
A
- Windows stores files in a file cabinet
- CAB files
- The EXPAND command is used to remove files from the cabinet
- -d- Display files in a cabinet
- > expand -d
- Extract a file
- > expand f : filename
15
Q
Managing Group Policy
A
- Group Policy
- Manage computers in a Active Directory Domain
- Group Policy is usually updated at login
- GPUPDATE - Forces a Group Policy Update
- gpupdate /target : {computer | user} / force
- gpupdate /target : professor / force
- GPRESULT - Verify policy settings for computer / user
- gpresult /r & gpreult / user