Join Scott Simpson for an in-depth discussion in this video Find files from the command line, part of Learn the Linux Command Line: The Basics.
- [Voiceover] 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 . for the current working directory,…which is my exercise files,…and then I'll type -name,…which is the test I'm using to match files.…
I want to match them based on their name.…There are other options,…like group permissions 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 "poe*" in double quotes.…The * 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.…I'll write find . -name "do*".…This finds a folder called Documents…
This course will establish the foundation for more advanced Linux topics. Find other Linux training courses here.
- What is the Linux command line?
- Writing Linux commands at the prompt
- Finding help for Linux commands
- Editing files and folders
- Configuring user roles and file permissions
- Using pipes to connect commands
- Peeking at files
- Searching and editing text
- Finding disk and system information
- Installing and updating software
Skill Level Beginner
Up and Running with CentOS Linuxwith Scott Simpson1h 32m Beginner
Up and Running with Bash Scriptingwith Scott Simpson1h 25m Beginner
1. Command-Line Basics
2. Files, Folders, and Permissions
3. Common Command-Line Tasks and Tools
4. A Peek at Some More Advanced Topics
- 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.