Workbook 2 Filesystem Basics: Chapter 6 Examining Files Flashcards
What command tells you a file’s type (ex: HTML document, MP3, gzip, etc)?
file command [56]
Using the cat command, how can you output all characters, including control characters?
cat -A [57]
Using the cat command, how can you number line output?
cat -n [57]
Using the cat command, how can you “ Squeeze” multiple adjacent blank lines into a single blank line
cat -s [57]
What navigation command in less and more moves you back one full screen?
PgUp [57]
How many lines do the head and tail command output by default?
10 lines [58]
Using the head command, give two command lines that output the first 5 lines of file1 and that suppress the header lines.
head -n 5 -q [58]
Using the tail command, give one command lines that output the last line of every file in /etc
and that suppress the header lines.
tail -n 1 -q /etc* [60]
Give one application of the tail command’s –f option.
tail -f is a follow switch that appended to a file [60]