Windows Commands Flashcards

1
Q

ipconfig

A

can be used to display the status of the currently active interfaces and details such as ip address

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

ipconfig /all

A

utility that can display additional options not shown by default, such as the mac address, using the /all flag

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

ping

A

used to test connectivity by sending ICMP packets. The number of packets sent in Windows is four by default

Note: some devices may block ICMP packets

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

ping -n

A

when using ping, the -n option can specify the number of packets to be sent

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

route print

A

can display the routing table and manipulate the entries within it

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

tracert

A

command can be used to determine the route to a remote host by sending several test packets to a specified destination address with a counter called TTL. Each device encountered represents a hop and is also known as a node. When passing each node, the TTL will be decreased, thus indicating a device in the path.

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

nslookup [website]

A

utility used to find the ip address that corresponds to a DNS record and vice versa.

Note: DNS records can correspond to several IPs to balance traffic and some DNS records may point to the same IP if it hosts multiple websites or services.

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

netstat -p tcp

A

can be used to display and filter all incoming and outgoing network connections

When specified with the -p tcp flag, netstat will only show TCP connections

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

arp -a

A

used to update, display or manipulate ARP table entries.

By default, executing arp will only update the table without printing it. arp -a on the other hand prints the ARP table to the terminal

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

List the contents of the directory

A

dir

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

Change directory

A

cd …

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

create a folder/directory in a specified path

A

mkdir …

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

Remove or delete a folder

A

rmdir …

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

create a file with text “hello world”

A

echo “hello world” > hello.txt

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

display the content of a file

A

type

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

rename a file

A

move or ren. move hi.txt welcome.txt

ren hi.txt welcome.txt

17
Q

create a user

A

net user [name] /add