Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 1 4 points ) Assume we have a program named bigbrother, whose output format is as follows: username login _ time = > logout
points Assume we have a program named bigbrother, whose output format is as follows: username logintime logouttime minuteson If a user hasnt logged out, the logouttime is set to none Times are otherwise in hour format. The program resets every day at midnight; if someone logged in at :pm then at :am it would say that they logged in at : and had been on for minute. Here is some sample output, assuming youve run the command at :pm: bart : none homer :: homer :: smithers :: smithers :: Bart logged on minutes ago, and is still on Homer logged in at :am for three minutes, and later logged in at :am for minutes. Smithers was logged in most of the day in one window, and also opened a second window for just over an hour. Note that: the program uses groups of spaces, sometimes more, sometimes fewer, so the output is in neat columns. There are no tabs in the output. and the output is sorted by username for everyone who logged on today in the order they logged in Write shell commands that begin with bigbrother and generate the following output: atwo points Show the full lines for the ten longest login sessions of the day.
points Assume we have a program named bigbrother, whose output format is as follows:
username logintime logouttime minuteson
If a user hasnt logged out, the logouttime is set to none Times are otherwise in hour
format. The program resets every day at midnight; if someone logged in at :pm then at
:am it would say that they logged in at : and had been on for minute.
Here is some sample output, assuming youve run the command at :pm:
bart : none
homer ::
homer ::
smithers ::
smithers ::
Bart logged on minutes ago, and is still on Homer logged in at :am for three minutes,
and later logged in at :am for minutes. Smithers was logged in most of the day in one
window, and also opened a second window for just over an hour.
Note that: the program uses groups of spaces, sometimes more, sometimes fewer, so the
output is in neat columns. There are no tabs in the output. and the output is sorted by
username for everyone who logged on today in the order they logged in
Write shell commands that begin with bigbrother and generate the following output:
atwo points Show the full lines for the ten longest login sessions of the day.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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