It's common to need to look for files on the system. Explore how to use the find command, in this video.
- [Instructor] We've been working with our exercise files,…which is a limited set of files…we can explore pretty easily, but sometimes you'll need…to look for a file if you don't know where it is.…For that, we have the find command.…Find has a lot of options, which are worth exploring…as you build your command line skills.…For now, we'll take a look at basic usage.…To use find, I'll type find…and then the scope of where I want to search.…I'll use the dot or period character…for the current working directory,…which is my Exercise Files.…And then I'll type dash name,…which is the test that I'm using to match files.…
I want to match them based on their name.…There are other options, like size, date, and so forth,…but I find that I use name the most.…Then I'll put a matching pattern for what I'm looking for.…I'll put p-o-e star…in double quotes.…Remember that the star or asterisk wildcard…will match any number of characters.…This should find our poems.txt file.…And when I run the command, sure enough, it did.…
Let's try another search.…
- Recognize what the characters “-h” represent in the statement “df –h/home/alice/Documents”.
- Explain how to recall a previous command in Bash.
- Identify what the command “ls -l” will show.
- Recall what is needed to use the find command to look for files by name, size, and so on.
- List the two modes file permissions can be set to.
- Recall why many command line tools are intended to be used in pipes with other commands.
- Explain what the command “grep -E "" report.txt” will show.
- Identify what the “>” symbol is often used for.
Skill Level Beginner
Learning SQL Server Development on Linuxwith Joey D'Antoni1h 54m Intermediate
What you should know1m 51s
1. Setting Up Your Environment
2. Command-Line Basics
3. Files, Folders, and Permissions
4. Common Command-Line Tasks and Tools
5. A Peek at Some More Advanced Topics
Next steps1m 28s
- 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.