Linux gives us the power to find files based on ownership, size, age, modify date, and even permissions using the find command. The results can be sent to a second command for further processing.
- [Instructor] Although locate is a useful tool…for finding files by name,…sometimes we want more power.…Find is not database driven so it's slower than locate,…but the results are always up to date…and it's much more powerful,…although the syntax can be difficult.…Let's start by using find to find a file by name.…Type in sudo space find space slash…space dash name space bzip2.…This will search the entire operating system…starting with slash…and look for anything that has bzip2 in its name.…We have to elevate privileges…because it's going to be looking…through operating system directories.…
Hit enter, type in your password, and hit enter again.…From our previous video we noticed that the locate command…found 14 files matching the name bzip2.…Find only finds two.…The reason for this is locate isn't very straight…and finds files and directories with bzip2…anywhere in the name.…By default, find only searches…for the exact characters you've entered.…To get find to act more like locate…we have to use wild cards.…Type in sudo space find space slash space dash name…
- Distinguish the difference between the –help option and the output of the man command.
- Define what the uptime command is used for.
- Compare the more command with the less command.
- State which compression algorithm is built into the tar command.
- Write where all operating system files in Linux are stored.
- List the three mods in vi.
Skill Level Intermediate
Setting Up a Red Hat Enterprise Linux Serverwith Sandra Toner2h 46m Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
1. Getting Help
2. Using Basic Commands
3. Navigating File Systems
4. Editing Text
- 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.