locate Flashcards

1
Q

locate

A

locate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output, one per line.

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

locate

A

locate alone will search for a file or name.

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

locate “*.html” -n 20

A

Limits the search quieries to a specific number with the -n flag.

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

locate -c [tech]*

A

Displays the number of matching entries with the -c option.

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

lcoate -i *text.txt*

A

Makes the search case insensitive with the -i option.

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

updatedb

A

This command will update the mlocate database.

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

locate -i -e *text.txt*

A

This command only prints out files that existed when the locate command was run and not after. That is why the -e, –existing option was used.

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

locate -i -0 *text.txt*

A

The -0 option causes the locate command to output entries without a newline.

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

locate -S

A

This command will display the mlocate.db file for viewing.

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

locate -q

A

The -q option suppresses any error messages.

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

locate -d <new> <filename></filename></new>

A

The -d option will point the locate command to a different mlocate.db file.

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