Commands Flashcards
Linux command to view and combine (concatenate) files.
cat command
Linux utility for showing the first lines in a file.
head
Linux utility for showing the last lines in a file.
tail
Linux utility that writes data to the system log.
logger
A group of characters that describe how to execute a specific search pattern on a given text.
regex
Linux command for searching and filtering input. This can be used as a file search tool when combined with ls.
grep
Linux command that makes a bit-by-bit copy of an input file, typically used for disk imaging.
dd
dd if=/dev/sda of=/mnt/usbstick/backup.img
a command line utility provided by many Linux distributions that allows administrators to edit the rules enforced by the Linux kernel firewall
iptables
iptables –list INPUT –line-numbers -n
nslookup / dig
Software tool for querying DNS server records.
Shows TCP ports
Utility to show network information on a machine running TCP/IP, notably active connections and the routing table.
netstat
Shows the config assigned to network interfaces
Mac address, IPs, default gateway etc.
ipconfig
Windows utility for measuring latency and packet loss along a route.
equivalent in Linux is MTR
Pathping
tcpdump
command-line packet sniffing utility.