Commands Flashcards

1
Q

Linux command to view and combine (concatenate) files.

A

cat command

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

Linux utility for showing the first lines in a file.

A

head

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

Linux utility for showing the last lines in a file.

A

tail

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

Linux utility that writes data to the system log.

A

logger

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

A group of characters that describe how to execute a specific search pattern on a given text.

A

regex

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

Linux command for searching and filtering input. This can be used as a file search tool when combined with ls.

A

grep

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

Linux command that makes a bit-by-bit copy of an input file, typically used for disk imaging.

A

dd

dd if=/dev/sda of=/mnt/usbstick/backup.img

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

a command line utility provided by many Linux distributions that allows administrators to edit the rules enforced by the Linux kernel firewall

A

iptables

iptables –list INPUT –line-numbers -n

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

nslookup / dig

A

Software tool for querying DNS server records.

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

Shows TCP ports

Utility to show network information on a machine running TCP/IP, notably active connections and the routing table.

A

netstat

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

Shows the config assigned to network interfaces

Mac address, IPs, default gateway etc.

A

ipconfig

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

Windows utility for measuring latency and packet loss along a route.

equivalent in Linux is MTR

A

Pathping

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

tcpdump

A

command-line packet sniffing utility.

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