103.2 Process Text Streams using Filters Flashcards
1
Q
Use cat to add one text file to the end of another.
A
cat file1.txt file2.txt
2
Q
Use head to view the first 5 lines of a file.
A
head -5
3
Q
Follow a log file using tail.
A
tail -f
4
Q
Print the number of lines in a file.
A
nl
5
Q
Perform an octal dump of a file.
A
od
6
Q
Create three different checksums.
A
md5sum
sha256sum
sha512sum
7
Q
Check an md5 file
A
md5sum -c
8
Q
Display unique lines of a file.
A
uniq –group
9
Q
sort a file using a general numeric sort, a unique sort, and a group sort
A
sort -n
sort -u
sort –group