1. Use the whatis command to determine the purpose of the is command. 2. Use the man program to find out what the -R option does when used with the date command. 3. Use the man program to determine what other commands you should also see in relation to the clear command.

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

I need help with my homework for itn 171

7:16
SU MO TU
we in F
4 5
1 2 3
67 8 9 10 11 12
13 14 15 16 17 18 19
21 22 23 24 25 26
29 30
73 of 718
52
(END)
DISCOVERY EXERCISES
dl.icdst.org
Figure 1-20 Viewing the contents of the notes file
1. Use the whatis command to determine the purpose of the Is command.
2. Use the man program to find out what the -R option does when used with the date
command.
3. Use the man program to determine what other commands you should also see in
relation to the clear command.
4. Use the cal command to determine on what day of the week you were born.
5. Use the cal command to determine which years between 2006 and 2015 are leap years.
6. Clear the screen, and view the online manual to determine how to display today's
date in UTC.
7. Display the current UTC.
8. Create a file called month containing the current month.
9. View the contents of the month file you created in Exercise 8.
10. Use the who command to determine the idle time for users currently logged in, but
output that information to a file called users_info. Next, view the file you created.
Chapter 1 The Essence of UNIX and Linux
11. View the files, month and users_info, in sequence using only one command-line
sequence of commands.
12. View the files month and users_info in sequence by using:
□ The less command
The more command
13. Create a file called who_info that contains the documentation for the who
command. Next, use the less command to view the who_info file contents, and scroll
forward and backward through the information. Then use the tail command to view
the final 12 lines of the who_info file. Finally, use the head command to view the
first 12 lines of the who_info file.
14. Create a file called favorite_foods, and list your favorite foods, entering five or six or
more. Press Enter after each favorite food so it appears on its own line (make certain you
also press Enter after the final food item). After the file is created, add two more foods
you like that are not on the list (press Enter after the final food item). View the list of
foods to make certain the two items you added appear at the end of the list.
15. View the documentation for who, and then view the documentation for w. How are
these commands similar?
16. Run the who -uH and w commands using one command-line sequence to compare
the results.
17. Determine when the computer on which you are working was last booted.
18. Use the command-line history function to determine the most recent two com-
mands you entered.
19. Run the who -H, cal 2009, and clear commands using one command-line sequence.
What do you end up with on the screen?
20. Use history function to retrieve the command line you used in Exercise 19. Use
the edit function to remove the word "clear" and replace it with "date." Next, go to
the beginning of "cal" and delete the text on the line from "cal" to the end. Now,
change the -H to -u. Finally, add "date -u" so that your final command-line entry is
who -u; date -u. Execute the command-line entries.
Transcribed Image Text:7:16 SU MO TU we in F 4 5 1 2 3 67 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 29 30 73 of 718 52 (END) DISCOVERY EXERCISES dl.icdst.org Figure 1-20 Viewing the contents of the notes file 1. Use the whatis command to determine the purpose of the Is command. 2. Use the man program to find out what the -R option does when used with the date command. 3. Use the man program to determine what other commands you should also see in relation to the clear command. 4. Use the cal command to determine on what day of the week you were born. 5. Use the cal command to determine which years between 2006 and 2015 are leap years. 6. Clear the screen, and view the online manual to determine how to display today's date in UTC. 7. Display the current UTC. 8. Create a file called month containing the current month. 9. View the contents of the month file you created in Exercise 8. 10. Use the who command to determine the idle time for users currently logged in, but output that information to a file called users_info. Next, view the file you created. Chapter 1 The Essence of UNIX and Linux 11. View the files, month and users_info, in sequence using only one command-line sequence of commands. 12. View the files month and users_info in sequence by using: □ The less command The more command 13. Create a file called who_info that contains the documentation for the who command. Next, use the less command to view the who_info file contents, and scroll forward and backward through the information. Then use the tail command to view the final 12 lines of the who_info file. Finally, use the head command to view the first 12 lines of the who_info file. 14. Create a file called favorite_foods, and list your favorite foods, entering five or six or more. Press Enter after each favorite food so it appears on its own line (make certain you also press Enter after the final food item). After the file is created, add two more foods you like that are not on the list (press Enter after the final food item). View the list of foods to make certain the two items you added appear at the end of the list. 15. View the documentation for who, and then view the documentation for w. How are these commands similar? 16. Run the who -uH and w commands using one command-line sequence to compare the results. 17. Determine when the computer on which you are working was last booted. 18. Use the command-line history function to determine the most recent two com- mands you entered. 19. Run the who -H, cal 2009, and clear commands using one command-line sequence. What do you end up with on the screen? 20. Use history function to retrieve the command line you used in Exercise 19. Use the edit function to remove the word "clear" and replace it with "date." Next, go to the beginning of "cal" and delete the text on the line from "cal" to the end. Now, change the -H to -u. Finally, add "date -u" so that your final command-line entry is who -u; date -u. Execute the command-line entries.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

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

I need this one as well and I need screenshots for the work that's what the professor asking for 

4. Use the cal command to determine on what day of the week you were born.
5. Use the cal command to determine which years between 2006 and 2015 are leap years.
6. Clear the screen, and view the online manual to determine how to display today's
date in UTC.
7. Display the current UTC.
Transcribed Image Text:4. Use the cal command to determine on what day of the week you were born. 5. Use the cal command to determine which years between 2006 and 2015 are leap years. 6. Clear the screen, and view the online manual to determine how to display today's date in UTC. 7. Display the current UTC.
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