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
find / today.odt
it will search all directories under root, including links.
For more options, type
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
More Related Questions
- window XP - Which of the following is true of the Encrypting File System (EFS)? ...
- operating system - in windows vista, how do you organize file list by file size?
- Intro to computer - you want ghost your network's computers with a fresh ...
- Microsoft word - Suppose you want to delete an existing file from within Word. ...
- programming - How do I delete a file on my shared LAN network with vbs??? 1. The...
- pre-algebra - 1. Jaron is downloading a file. The size of the file is 3200 KB. ...
- Computer science - Need help on how write this program. "The Eversoft Eraser ...
- computer forensics - 1.Check the operating system’s swap file. Using the WinHex ...
- bookkeeping - to complete tasks quickly and efficiently a operating system has ...
- operating system - a. What is the name and version number of the operating ...