 |
|
|
|
SCHOOL SUBJECTS
-
-
-
-
-
-
-
-
-
-
-
-
|
|
|
GRADE LEVELS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
|
|
|
|
Post a New Question | Current Questions | Chat With Live Tutors
Posted by Anonymous on Wednesday, October 21, 2009 at 4:50pm.
|
How would you search the entire file system for a file named today.odt?
|
- Operating Systems - Anonymous, Wednesday, October 21, 2009 at 5:04pm
|
correction: This is in Linux.
|
- Operating Systems - MathMate, Wednesday, October 21, 2009 at 5:07pm
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).
|
- Operating Systems - Anonymous, Wednesday, October 21, 2009 at 5:11pm
|
Would this also work: find / -name "today.odt " -print
|
- Operating Systems - MathMate, Wednesday, October 21, 2009 at 5:29pm
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.
|
Answer this Question
|
|
|
 |