Command Line Tools Flashcards

1
Q

What is Ping?

A

Command use to test network connectivity and resolve hostnames to IP addresses

Uses Internet Control Message Protocol (ICMP)

  • t switch sends unlimited Pings (Windows)
  • c switch sets number of pings (Linux)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Hping?

A

Similar to ping, but also uses TCP, UDB, and ICMP

Can also scan for open ports.

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

What is ipconfig?

A

(Internet Protocol Configuration)

Command line use to show TCP/IP configuration; ip address subnet mask, default gateway, MAC address and dns server of all nics on a device.

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

What is ifconfig

A

Similar to ipconfig but with more capabilities. Can display nic properties and configure the nic as well.

Used on Linux

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

What is IP?

A

Command that replaces ifconfig with different/less features.

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

What is Netstat?

A

Command line used to determine active connections and view system tcp/ip protocol statistics.

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

What is Tracert?

A

Command line used to display all transporting routers (hops) between two systems.
Can also be used to see where packets are dropped or where a path has been modified.

  • Tracert (Windows)
  • Traceroute (Linux)
  • d switch prevents command from resolving ip addresses to hostnames which makes the command go faster.
  • n switch used on Linux to go faster and not resolve names.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Pathping?

A

Command line that combines the features of tracert and ping. Identifies hops and computes statistics of each ping per hop.

  • mrt similar command in Linux but not needed for exam.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is ARP

A

Command line used to view and edit the ARP cache of a system.

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

What is the cat command?

A

Used in Linux, Short for concatenate, used to view the contents of a file. Can also merge or make copies of files as well.

  • | more switch allows to view files one page at a time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the grep command?

A

(Globally Search A Regular Expression and Print)

Used in Linux, to search specific contents of a file. Can be used with other commands.

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

What is the head command?

A

Used in Linux, to view the beginning of a file. By default first 10 lines.

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

What is the Tail command?

A

Linux command used to view the last few lines in a file. By default last 10 lines.

-n switch allows to set number of lines.

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

What is the Logger command?

A

Linux command used to add entries for the syslog file such as right before doing a backup. Gives a time stamp

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

What is the journalclt command?

A

Linux command used to query Linux system logging utility. Journald.

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

What is the chmod command?

A

Linux command used to assign permissions; read, write, and execute. Three groups to be identified.

Two ways can be done.

Chmod 760 filename

Or

Chmod u=0 filename

U - file owner
G - group
O - everyone else.