windows command line Flashcards

(32 cards)

1
Q

help

A

Use if you’re not sure

> help chkdsk
> help dir

Also use:
[command] /?

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

dir

A

List files and directories

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

cd / chdir

A

Change working directory
Use backslash \ to specify volume or folder name

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

..

A

Two dots/periods
The folder above the current folder

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

md / mkdir

A

Make a directory

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

rd / rmdir

A

Remove directory

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

hostname

A

View the name of the device
– This is very useful when there are 10 different terminal
screen tabs in use
This is the Windows Device name
– Name can be changed in the System settings

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

format

A

Formats a disk for use with Windows
BE CAREFUL - YOU CAN LOSE DATA

format c:

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

copy (/v, /y)

A

Copy files from one location to another
/v - Verifies that new files are written correctly
/y - Suppresses prompting to confirm you want to
overwrite an existing destination file

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

xcopy

A

Copies files and directory trees

xcopy /s Documents m:\backups

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

robocopy

A

Robust Copy
A better Xcopy

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

gpupdate

A

Force a Group Policy update

gpupdate /target:{computer|user} /force
gpupdate /target:user /force

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

gpresult

A

Verify policy settings for a computer or user

gpresult /r
gpresult /user sgc/professor /v

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

shutdown

A

Shutdown a computer

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

shutdown /s /t nn

A

Wait nn seconds, then shutdown

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

shutdown /r /t nn

A

Shutdown and restart after nn seconds

17
Q

shutdown /a

A

Abort the countdown!

18
Q

sfc

A

System File Checker

sfc /scannow

19
Q

chkdsk /f

A

Fixes logical file system errors on the disk

20
Q

chkdsk /r

A

Locates bad sectors and recovers readable information

Implies /f

21
Q

diskpart

A

Manage disk configurations

22
Q

winver

A

View the About Windows dialog

23
Q

ipconfig

A

Ping your local router/gateway
Determine TCP/IP and network adapter information
View additional configuration details

24
Q

ping

A

Test reachability

25
netstat
Network statistics
26
netstat -a
Show all active connections
27
netstat -b
Show binaries (Windows)
28
netstat -n
Do not resolve names
29
nslookup
Lookup information from DNS servers Lookup names and IP addresses
30
net
Windows network commands View network resources – net view \\ – net view /workgroup: Map a network share to a drive letter – net use h: \\\ View user account information and reset passwords – net user – net user * /domain
31
tracert
Determine the route a packet takes to a destination
32
pathping
Combine ping and traceroute First phase runs a traceroute Second phase measures round trip time and packet loss at each hop