These are utilizing Linux utilities/system calls

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

These are utilizing Linux utilities/system calls

Problem 1 (Utilities)
Bookmark this page
How does it work?
These exercises are investigative. You only need to respond explictily to the last sentence in each exercise. But trying to answer the initial questions in each exercise should
help you to understand what should be entered in each case.
1) Enter the command history in a terminal. Now enter the up-arrow key a few times. Do you see what is going on? Consider how this command might work. The history
command does not have a manual page. But there is a description of the command available. A clue is given by the command help help. This is similar to man man but
accesses a different body of information. Follow this clue to find the name of the file from which history gets its information. The exact name of this file (by itself not with
the full path: so do not include any slashes) is
2) The command echo $PATH prints a list of directories. What similar command prints the path to the file mentioned in the previous problem? (Include echo, but enter
only one space between echo and what follows.)
3) Enter the command last in a terminal. Now enter the command who in a terminal. Both commands produce lists. Each entry in the list which who displays contains
a time. Most entries in the list which last displays contain two times. The exact times (to the minute) in the who list also appear in certain entries in the last list. In
those entries there is no second time. Instead a phrase appears. What phrase appears at the end of such a time-matched entry in the list produced by last? (Enter the
three words of that phrase with one space between each word; if there is a dash omit the dash)
4) While the utility who reads from the file /var/run/utmp , the utility last reads from the file (full path):
Save Reset
Transcribed Image Text:Problem 1 (Utilities) Bookmark this page How does it work? These exercises are investigative. You only need to respond explictily to the last sentence in each exercise. But trying to answer the initial questions in each exercise should help you to understand what should be entered in each case. 1) Enter the command history in a terminal. Now enter the up-arrow key a few times. Do you see what is going on? Consider how this command might work. The history command does not have a manual page. But there is a description of the command available. A clue is given by the command help help. This is similar to man man but accesses a different body of information. Follow this clue to find the name of the file from which history gets its information. The exact name of this file (by itself not with the full path: so do not include any slashes) is 2) The command echo $PATH prints a list of directories. What similar command prints the path to the file mentioned in the previous problem? (Include echo, but enter only one space between echo and what follows.) 3) Enter the command last in a terminal. Now enter the command who in a terminal. Both commands produce lists. Each entry in the list which who displays contains a time. Most entries in the list which last displays contain two times. The exact times (to the minute) in the who list also appear in certain entries in the last list. In those entries there is no second time. Instead a phrase appears. What phrase appears at the end of such a time-matched entry in the list produced by last? (Enter the three words of that phrase with one space between each word; if there is a dash omit the dash) 4) While the utility who reads from the file /var/run/utmp , the utility last reads from the file (full path): Save Reset
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Useful information, but this is not answering the fill-in-the-blank question. Can you help me answer?

Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY