In Linux (like Unix before it), nearly all configuration information is stored in…?
text files.
Contrast this with Windows, which stores configuration information in a huge, monolithic database called The Registry.
Text files are generally easier to set up and work with.
Linux includes a rich set of tools for viewing and editing text files. The following chapters describe some of these.
cut command…?
selects columns of text in a text file.
Commands like head, tail, and grep can be considered to make…?
“horizontal” cuts in a file.
cut can be considered to make…?
“vertical” cuts in a file.
Switches for the cut command…?
Example on slide 5 to 6
Paste command…?
Appends files horizontally, line by line
See example on slide 7
The diff command…?
Compares two files, and reports the differences between them.
See example on slide 8
diff command line switches:
–left-column Print only the left column when using the side by side format.
-q, –brief Only report if files differ, not the details on the difference.
diff can be quite picky, and report all sorts of changes which are…?
trivial and ultimately meaningless. Here are some switches to ease the pain:
cut command…?
selects columns of text in a text file.
Commands like head, tail, and grep can be considered to make…?
“horizontal” cuts in a file.
cut can be considered to make…?
“vertical” cuts in a file.
Switches for the cut command…?
Example on slide 5 to 6
Paste command…?
Appends files horizontally, line by line
See example on slide 7
The diff command…?
Compares two files, and reports the differences between them.
See example on slide 8
diff command line switches:
–left-column Print only the left column when using the side by side format.
-q, –brief Only report if files differ, not the details on the difference.
diff can be quite picky, and report all sorts of changes which are…?
trivial and ultimately meaningless. Here are some switches to ease the pain:
-
The tr command…?
Performs character translations (substitutions, deletions, squeezing) on the input stream and passes the modified string to the output stream.
See example on slide 11
See slide 12 for deleting characters examples
See slide 13 for squeezing characters
aspell command is used for…?
spell checking text files.
Example on slide 14
aspell can be used on the …?
stdin and stdout streams.
aspell can also be used to start…?
an interactive spell check session (aspell - c filename)
This will highlight any word it can’t find in the dictionary in turn, and offer you a range of alternative for correction.
As usual, if there are no misspelled words, it says nothing at all.
aspell two dictionaries are used by default…?
fmt command is generally used to…?
break long lines up into shorter ones by inserting newline characters.