From the course: CompTIA Linux+ (XK0-005) Cert Prep
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Find files with Find - Linux Tutorial
From the course: CompTIA Linux+ (XK0-005) Cert Prep
Find files with Find
- [Instructor] One of the most powerful ways of finding files on Linux is using the find command. The find command is not database-driven and thus the results are always up to date. Find requires a search path. If you don't provide one, then it assumes you want to look in the current directory. To search the entire file system just use slash as the path, but keep in mind that you will need to elevate privileges. You will also need to provide the name of the file you're looking for. Type into a terminal sudo find / -name bash and hit Enter. This will search the entire file system for a file named bash. In contrast to the locate command, find only searches for the exact characters you've entered. To get find to be less specific you will have to use patterns. For instance, bring your line back and surround bash with asterisks. This looks for file names that include bash and, as such, returns bash-completion and .bashrc…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
About Linux Shells6m 21s
-
(Locked)
About Linux Terminals1m 50s
-
(Locked)
Get help on the command line5m 8s
-
(Locked)
Understand the Linux Filesystem Hierarchy8m 22s
-
(Locked)
Understand filesystem paths6m 2s
-
(Locked)
Create files and dirs4m 11s
-
(Locked)
Get information about files5m 29s
-
(Locked)
Copy files and dirs4m 39s
-
(Locked)
Move and rename files and dirs4m 11s
-
(Locked)
Remove files and dirs3m 44s
-
(Locked)
Create links to files and dirs6m 24s
-
(Locked)
Use input-output redirection (>, >>, |, 2>)1m 55s
-
(Locked)
Connect programs with named and unnamed pipes4m 19s
-
(Locked)
File redirects and tees6m 7s
-
(Locked)
Find files using Locate4m 11s
-
(Locked)
Find files with Find7m 28s
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-