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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DISKPART

A
  • Troubleshooting storage devices

- Access to configure , format & make changes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

FORMAT

A

-Format a disk for use with Windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DIR / DEL

A
  • DIR
    • List File Directories
  • DEL
    • Remove a file from a directory or disk
    • Also called erase
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

MD / CD / RD

A
  • MD
    • Make Directory
  • CD
    • Change Directory
  • RD
    • Remove Directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Copy ( /a , /v , /y )

A
  • /v - Verifies that new files are written correctly

- /y - Suppress prompting to confirm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

XCOPY

A

-Copies Files & Directory trees

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ROBOCOPY

A
  • Robust copy
    • Better than XCOPY

-Included with Windows Vista , Windows 7 & Windows 8 / 8.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly