Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. (14 points) Assune we luve a prograin named highother, whoce outpht format is as follows: tistriame login time logout time maintes on If a

image text in transcribed
5. (14 points) Assune we luve a prograin named highother, whoce outpht format is as follows: tistriame login time logout time maintes on If a user hasn't logged out, the logout_fme ses set to 'none". Timus are otherwise in 24-hour 12:01am it would say thint they logged in at 12:00, and had been on for 1 minute. Here is some sample output, assuming you've run the command at 11:30ym: Bart Iogged on 10 minutes ago, and is still on. Homer logged in at 10-15am for three minutes, and later logged in at 10:20am for 10 minutes. Smither= whas logged in most of the day in one Window, and also opened a second window for fust over an hnur. Note that: (1) the program uses groups of spuces, sometimes more, sometimes fewer, so the output is in neat colimne. (There are no tabs in the output.), and (2) the output is sorted by username for everyone who logged on today in the order they logged in. Write shell commands that begin with anil generate the following oufpiat: (a) (two points) Show the full lines for the five longest login sessions of the day. (b) (two points) Show the full line for all login sessions that began before kam. (c) (two points) Show the full line for all login sessions thint ended after spm- (d) (two points) Show only the names and login times for all sessions. You maty only use a single auk command after the pipe. (e) (two points) Show only the names and login times for all sessions. You may not use auth in your answer. f) (four points) Give the total login time for user carl, counting all login sessions

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

More Books

Students also viewed these Databases questions

Question

Explain basic guidelines for effective multicultural communication.

Answered: 1 week ago

Question

Identify communication barriers and describe ways to remove them.

Answered: 1 week ago

Question

Explain the communication process.

Answered: 1 week ago