Windows Commands Flashcards

1
Q

Change directory

A

cd

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

Delete directory

A

rmdir

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

List All files and subdirectories

A

dir

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

Create new directory

A

md / mkdir

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

Display all network configuration values, including hostname, IP address, default gateway, subnet mask, network features

A

ipconfig
ipconfig /all (all adapters)

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

Display name of host system

A

hostname

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

Copy files and subfolders with full control over moving data, commonly used for managing data between multiple PCs

A

robocopy
robocopy /S (only subdirectories with contents)
robocopy /E (all subdirectories)

other flags - granular control over data transfer when copying over network

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

Display both incoming and outgoing connections to your PC along with the protocol type, plus parameters to see routing table, number of bytes and packets sent/received, process ID (PID), program name that established the connection

A

netstat
netstat -a (active connections)
netstat -b (display programs attached to each connection) <== admin
netstat -n (show IP addresses only)

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

Scan the hard drive for logical or physical errors, plus parameters to find and fix file system errors and bad sectors automatically

A

chkdsk (cross ref dir to filesystem only)
chkdsk /f (fix structural mismatches btwn dir / filesystem)
chkdsk /r (/f + recovers physical data on corrupted disk sectors that can’t be repaired)

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

Scan all system files and look for errors, then automatically replace any with a new file from cache

A

sfc

sfc /scannow

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

Delete and Format all data on a volume, and parameters to configure file system type, change volume label, change allocation unit size, create compressed volume

A

format [C:]

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

Check DNS records and troubleshoot DNS.

A

nslookup [url]

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

Apply group policies on a computer in a windows domain, possibly to refresh GPOs and avoid reboot

A

gpupdate /[target]:[user]
gpupdate […] /force

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

Report what group policies and settings are applied to a user or computer, especially given parameters to specify which hostname or scope

A

gpresult

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

Manage local disks, partitions, and volumes, including delete, create, format, extend and shrink volumes

A

diskpart (enters program)
format (format volume or partition)
list [disk/partition/volume/vdisk]
filesystems (display supported filesystems and those in use on volume)
extend
shrink
setid (change partition type)
rescan (look for all on computer)

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

Copy all files and folders to a new location

A

xcopy
xcopy /s (entire folder and subdirectories)

17
Q

Display user account information on a computer or a domain

A

net user
net user /[username] * /[domain]

18
Q

Create or remove alias to shared resources such as network drives and printers

A

net use [K:] \[server][share]

19
Q

Force power or logoff sequence of a computer or remote system, also parameters to check why a computer restarted or shut down

A

shutdown
shutdown /s (shutdown only)
shutdown /t [00] (wait timer)
shutdown /r (restart after shutting down)
shutdown /a (last-minute abort of a countdown)

20
Q

Copy file in a specified location

A

copy
copy /v (verifies write was successful)
copy /y (skip overwrite confirmation)

21
Q

Run deframentation on a storage volume

A

defrag [C:]

22
Q

Run disk cleanup utility

A

cleanmgr.exe

23
Q

View network shared resources

A

net view [\server]
net view /workgroup:[name]

24
Q

Map each hop of packet along a network connection to destination IP

A

tracert [0.0.0.0]
tracert -d (show ip addresses only)

25
Q

Map each hop of packet along a network connection to destination IP + latency and packet loss data at each hop

A

pathping