Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help figuring out how to run these command Thank you! This exercise requires you to modify webstats.sh to collect and print out the following
need help figuring out how to run these command
This exercise requires you to modify webstats.sh to collect and print out the following information from webstats.log. 1. Date range of the log. This would be the first (oldest) and last (newest) date in the file. 2. Total number of visits during the date range. 1 visit = 1 line 3. Total number of unique visitors. A unique visitor = a unique IP address. 4. 10 most frequent users and the number of times they visited 5. 5 most frequently accessed resources by the HTTP GET and POST requests and the number of times accessed. 6. 10 most accessed URLs and the number of time accessed. 7. Number of visitors using Internet Explorer broken down by version. 8. Number of visitors using Firefox broken down by version. 9. Number of visitors using any other browser. Although it seems complicated, each piece of statistical data can be retrieved using a few commands. You may need to use a single command multiple times in one command chain The following commands are the only ones needed to complete this exercise. You may need to combine command options. head -- X // Show the first X lines of a text file. If -n not specified, default is 10 tail -n X // Show the last X lines of a text file If -n not specified, default is 10 cut -f X // Extract column X from a line of text cut -d 'X' // Extract a column where columns are separated by the character X tr'Thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started