Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can anyone help me with Linux commands, I am super new to Linux commands and never had any experiences with Linux before. Thank you so
Can anyone help me with Linux commands, I am super new to Linux commands and never had any experiences with Linux before. Thank you so much!
Activity 1 - Linux Commands Perform the following tasks. For each task, include a screenshot that clearly indicates the command(s) that you used to accomplish the specified task as well as the output that proves that the task was accomplished correctly. Make sure that your username is in the screenshot prompt. If you're unable to perform the task as specified, you may receive partial credit by providing the commands and output you were able to get and explain where you had difficulty. Any text you write should be written in red font. Task 1 (10 points): Write a single command that outputs a list of all programs in /usr/bin that begin with "ip", begin with "net", or end with "grep". Hint: when using a $ in a regex, the $comes after the string you want to match at the end of line Kinsert screenshot here> Task 2 (20 points): Output a list of all subdirectories of /etc that you cannot open. The list should only include the full path of the subdirectories without any extraneous visible characters, such as"". See the output below for the first few subdirectories and expected formatting. This task must be accomplished in two commands or fewer. Hint: save the list of subdirectories to a file and then use filters. /etc/audisp etc/audit /etc/cups/ssl /etc/dhcp /etc/firewalld /etc/grub.d /etc/ipsec.d /etc/libvirt etc/lvm/archive /etc/lvm/backup etc/lvm/cache Kinsert screenshot here> Task 3 (50 points): Ted Williams was a baseball player that played Major League Baseball for 19 seasons between the years 1939 and 1960 and is considered The Greatest Hitter That Ever Lived. Some of his statistics are stored in TeddyBallgame.csv on myCourses. You will be performing several tasks using this file. See the top line of the file for the definition of each field in the file. Note that since this is a .csv file, all fields are separated by commas. Task 3a (5 points): Write a single command that removes the top line of the file, replaces commas with spaces, and saves the output to a file called TeddyBallgame.txt. Also show the contents of TeddyBallgame.txt in your screenshot (you should use a separate command to display the output to the console) Kinsert screenshot here> Task 3b (15 points): Use TeddyBallgame.txt from Task 3a as a starting point for this task. Write a single command to output the list of all seasons where Ted Williams had 100 or more Runs Batted In. Your output should only include the year and the number of Runs Batted In during that year. Kinsert screenshot here> Task 3c (15 points): Use TeddyBallgame.txt from Task 3a as a starting point for this task. Write a single command to output the list of all seasons where Ted Williams hit 30 or more Home Runs. The list should be sorted from most Home Runs to least and the final output should include the fields Year, Home Runs, Runs Batted In, and Batting Average for those seasons. See expected output below 1949 43 159.343 1957 38 87 .388 1946 38 123.342 1941 37 120 .406 1942 36 137.356 1947 32 114 .343 1939 31 145.327 1951 30 126 .318Step 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