Jiskha Homework Help
SATURDAY
November 21, 2009
SCHOOL SUBJECTS
- Art
- Business
- Computers
- English
- Foreign Languages
- Health
- Home Economics
- Math
- Music
- Physical Education
- Science
- Social Studies
GRADE LEVELS
- Preschool
- Kindergarten
- Elementary School
- 1st Grade
- 2nd Grade
- 3rd Grade
- 4th Grade
- 5th Grade
- 6th Grade
- 7th Grade
- 8th Grade
- High School
- 9th Grade
- 10th Grade
- 11th Grade
- 12th Grade
- College
- Adult Education
Post a New Question | Current Questions | Chat With Live Tutors

Homework Help Forum: Operating Systems

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

First Name:
School Subject:
Answer:

SEARCH

COMMUNITY
FEATURES
- Live Tutors
- Net Riddle
- Reference
- Search