Learn to search the file system for files and directories by their name and by other attributes.
- [Instructor] Let's talk about how you can search … for files and directories that you created on Unix. … The way that we search for files and directories … is with the find command. … The format is the find command, … followed by the path that we want to search. … So, we're going to search all files … and directories inside that path. … And then last the expression … that we want to use for searching. … And there's a variety of expressions we can use. … We're going to just be using the most common … and most basic one which is the name expression. … So here I have the find command, … I'm telling it to search in the root of the hard drive. … That's what that forward slash is, … in the directory home, … and in there, look for things … where the name is equal to vacation_photo.jpg. … And it'll look throughout that directory … to see if it can find a file that has that matching name. … The double quotes are optional, … but I think they're a good idea. … This type of expression is useful …
Skill Level Intermediate
1. Introduction to Unix
2. Files and Directories
3. Ownership and Permissions
4. Commands and Processes
5. Directing Input and Output
6. Configure Your Working Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.