2.12 Flashcards

1
Q

Searches through all files based on the file system by name, file size, time created, and other options.

A

find

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

locates a file or directory by name in a specific path

A

-name

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

finds files owned by a specific user.

A

-user

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

finds files of a specific size

A

-size

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

finds files last modified before or after a specified number of days ago

A

-mtime

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

specifies whether to find files or directories.

A

-type

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

specifies how many levels down to search.

A

-maxdepth

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

finds filenames with spaces.

A

-print0

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

Specifies the or parameter when searching with multiple criteria.

A

-o

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

searches for files in a system

A

locate

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

Displays the path to a command and determines whether a package is installed.

A

which

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

Displays the path to a Linux command’s binary files, manual pages, and source code (if sources are installed)

A

whereis

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

Displays a command’s type

A

type

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

Searches through files for a specified character string

A

grep

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

Uses regular expressions in the search strings.

A

egrep

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

Uses a file as the source for the string patterns.

A

fgrep

17
Q

Displays the differences between two files, line by line.

A

diff