Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux Intro Skills Exam 11-12 Provide the command(s) and any additional steps to complete each task. 1. Save the output of the 'date' command

image text in transcribedimage text in transcribed

Linux Intro Skills Exam 11-12 Provide the command(s) and any additional steps to complete each task. 1. Save the output of the 'date' command to a file called "times.txt". 2. Append the contents of another invocation of the 'date' command to times.txt. 3. Is-1~/.bashrc ~/.idontexist' outputs to both STDOUT and STDERR. Discard the error message by redirecting STDERR to /dev/null. 4. Display only the lines of output of the 'set' command containing the word "bash", ignoring case. 5. Without using 'vi' or another editor, write a single command to modify and create a backup of the /home/sam/dgvideos.html file, changing all links to use 'https://' instead of 'http://'. 6. Select only the lines of /etc/passwd that end with "bash" and print just the first field (username) to the screen. 7. 'netstat -t' shows all listening TCP sockets on your system. Send that output through a pipeline to count the number of listening TCP sockets. (Hint: You will need to filter out the column headers before counting.) 8. View the contents of the $PATH shell variable. Replace all instances of the existing delimiter with newline characters to reorient the data into a single-column list. Remove any lines that start with /root. Save the resulting list to a file called "pathdirs.txt". 9. Starting with the output of the 'Ismod command (which shows currently loaded kernel modules/drivers), use a series of filters to discard the header line, sort by size from highest to lowest, print only the module name column, and save the results to a file called "modules_by_size.txt". 10. Use a subcommand within an 'echo` command to display today's date as part of the output string. (e.g. "Today's date is FILL_IN_THE_BLANK. It's a great day to use Linux.")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Networking A Top-Down Approach

Authors: James Kurose, Keith Ross

7th edition

978-0133594140

More Books

Students also viewed these Computer Network questions