Ubuntu Linux: Working with File Content Flashcards
1
Q
What outputs the first ten lines of a file?
A
[head]
2
Q
How do you re-run the last command with one keystroke?
A
You can press the up key on the directional pad.
3
Q
What command is used to display a specified number of the first few lines of a file?
A
[head -(any number)]
4
Q
What command is used to display the last ten lines of a file?
A
[tail]
5
Q
[cat]
A
Concatenate files and print on standard output (displays all file content).
6
Q
How do you extract file content and move it into another file?
A
[cat >(newfilename)]
7
Q
How can you create a file with text in it in the Linux terminal?
A
[cat >(new filename)]
8
Q
A