Windows Commands Flashcards
ipconfig
can be used to display the status of the currently active interfaces and details such as ip address
ipconfig /all
utility that can display additional options not shown by default, such as the mac address, using the /all flag
ping
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
ping -n
when using ping, the -n option can specify the number of packets to be sent
route print
can display the routing table and manipulate the entries within it
tracert
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.
nslookup [website]
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.
netstat -p tcp
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
arp -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
List the contents of the directory
dir
Change directory
cd …
create a folder/directory in a specified path
mkdir …
Remove or delete a folder
rmdir …
create a file with text “hello world”
echo “hello world” > hello.txt
display the content of a file
type