Asked by Anonymous

How would you search the entire file system for a file named today.odt?

Answers

Answered by Anonymous
correction: This is in Linux.
Answered by MathMate
Try
find / today.odt
it will search all directories under root, including links.
For more options, type
man find
to read about the command find on Linux (man for manual).
Answered by Anonymous
Would this also work: find / -name "today.odt " -print
Answered by MathMate
Yes it would.
The quotes are used to delimit regular expressions, for example if you want to find all files ending with .h or .c, you would type in
find / "*.[ch]" -print
If you don't put any metacharacters for regular expressions, it will be interpreted as is.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions