CHAPTER TEN: ANALYZING FILES Flashcards

(17 cards)

1
Q

command: diff

A

it tells you what is different between to files.

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

command: du

A

disk storage. to see how many bytes a file takes.

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

command: du-h dir1

A

show in human readable form

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

command: wc -i facts.txt

A

wc = word count, can tell you lines

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

command: wc -w facts.txt

A

counts words

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

command: wc -c facts.txt

A

counts characters/bytes

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

command: wc facts.txt

A

counts words, lines and characters/bytes

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

what is ASCII?

A

American standard code for information interchange. it is a code representing 128 English characters as numbers, with each letter assigned a number for 0 - 127

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

Command: sort facts.txt

A

sort aphabetically

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

command: sort -r facts.txt

A

reverse order

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

command: sort -n numbers.txt

A

sort numerically

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

Command sed

A

used to find and replace words in text

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

Command awk

A

awk is a mini-programming language that is smarter than cut. used to analyse and processes text.

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

[abc]

A

matches a b or c

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

[!abc}

A

matches anything but a b or c

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

[[:class:]]

A

matches a character class like digits or letters

17
Q

Sudo

A

it temporarily gives selected users permissions to run specific commands like they were a root