TryHackMe - Pre Security | Linux Fundamentals Part 1: Searching for Files
🐧 Searching for Files in Linux: The Find & Grep Commands! | TryHackMe 🐧 Welcome back to the "Linux Fundamentals Part 1" room! In this video, we're diving into Task 6: Searching for files. This is where we go beyond basic navigation and learn two incredibly powerful commands—find and grep—that allow us to efficiently locate files and content without manually searching every directory. Finding Files with the find Command I explain that the find command is a fantastic tool for locating files when you know their name but not their location. I show you how to use the -name flag to search for a specific file and how to use a wildcard (*) to search for all files with a certain extension, like .txt. This command saves you from having to use ls and cd repeatedly, making you far more efficient. Searching Inside Files with the grep Command I then introduce grep (Global Regular Expression Print), a command that allows us to search within the contents of a file for a specific value. I demonstrate its power with a practical example: searching a large access.log file for a specific IP address. grep quickly sifts through hundreds or even thousands of entries to show only the lines that contain the value you're looking for, which is a critical skill for tasks like log analysis and bug hunting. Hands-On Challenge Walkthrough We put our new skills to the test by using the grep command to search the access.log file for a flag with the prefix thm. We successfully find the flag and complete the task, solidifying our understanding of how these commands can be used in a real-world scenario. What's next? We're moving on to Task 7: An Introduction to Shell Operators, where we'll learn how to combine commands to create powerful and efficient scripts. Which command do you think you'll use more often: find or grep? Share your thoughts in the comments below! #Linux #LinuxFundamentals #LinuxCommands #Find #Grep #Terminal #CommandLine #TryHackMe #PreSecurity #Cybersecurity #EthicalHacking #NetworkingExplained 📚 Further expand your web development knowledge FreeCodeCamp Series: https://www.youtube.com/playlist?list=PLktFju7xyBzQi_ybSHMKZgyna2YZAHub5 Javascript Codewars Series: https://www.youtube.com/playlist?list=PLktFju7xyBzSQq5tnV-qJV5v8cZ7PtO1k 💬 Connect with us: 🔗 Twitter: https://twitter.com/_codeManS 🔗 Instagram: https://www.instagram.com/codemansuniversal/
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.