Ubuntu Linux: Working with File Content Flashcards

1
Q

What outputs the first ten lines of a file?

A

[head]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you re-run the last command with one keystroke?

A

You can press the up key on the directional pad.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command is used to display a specified number of the first few lines of a file?

A

[head -(any number)]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command is used to display the last ten lines of a file?

A

[tail]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

[cat]

A

Concatenate files and print on standard output (displays all file content).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you extract file content and move it into another file?

A

[cat >(newfilename)]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How can you create a file with text in it in the Linux terminal?

A

[cat >(new filename)]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly