From the course: Learning Linux Command Line
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Challenge: Extract information from a text file - Linux Tutorial
From the course: Learning Linux Command Line
Challenge: Extract information from a text file
(upbeat music) - [Instructor] One of the common ways hackers try to break into computers is by attempting to log in remotely with randomly generated usernames or with usernames commonly used by popular services. The service that monitors login attempts writes information about those connection attempts into a system log file. So while this kind of activity is going on, we have a record of these attempts. In the exercise files, there's an archive called log.tar.gz and it contains a log file with a lot of attempted connections. Here's a challenge to help practice what we've seen so far. The task is to extract the file so we can work with it as text and look for lines containing invalid user authorization requests. Let's use what we've learned to create a file containing the usernames our would-be hacker tried to use to log in. Remember to use the tools we've learned about to browse through text, to rearrange text…
Contents
-
-
-
-
-
-
The Unix philosophy2m 29s
-
(Locked)
Use pipes to connect commands together2m 41s
-
(Locked)
View text files with cat, head, tail, and less4m 44s
-
(Locked)
Search for text in files and streams with grep4m 30s
-
(Locked)
Manipulate text with awk, sed, and sort6m 50s
-
(Locked)
Edit text with Vim4m 35s
-
(Locked)
Edit text with nano2m 49s
-
(Locked)
Working with tar and zip archives8m 17s
-
(Locked)
Challenge: Create and share a file28s
-
(Locked)
Solution: Create and share a file1m 48s
-
(Locked)
Output redirection5m 11s
-
(Locked)
Exploring environment variables and PATH3m 54s
-
(Locked)
Challenge: Extract information from a text file1m 8s
-
(Locked)
Solution: Extract information from a text file3m 28s
-
-
-