Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DISCOVERY EXERCISES 1 . Use the whatis command to determine the purpose of the ls command. 2 . Use the man program to find out
DISCOVERY EXERCISES
Use the whatis command to determine the purpose of the ls command.
Use the man program to find out what the R option does when used with the date
command.
Use the man program to determine what other commands you should also see in
relation to the clear command.
Use the cal command to determine on what day of the week you were born.
Use the cal command to determine which years between and are leap years.
Clear the screen, and view the online manual to determine how to display todays
date in UTC.
Display the current UTC.
Create a file called month containing the current month.
View the contents of the month file you created in Exercise
Use the who command to determine the idle time for users currently logged in but
output that information to a file called usersinfo. Next, view the file you created.
Figure Viewing the contents of the notes file
Discovery Exercises
View the files, month and usersinfo, in sequence using only one commandline
sequence of commands.
View the files month and usersinfo in sequence by using:
The less command
The more command
Create a file called whoinfo that contains the documentation for the who
command. Next, use the less command to view the whoinfo file contents, and scroll
forward and backward through the information. Then use the tail command to view
the final lines of the whoinfo file. Finally, use the head command to view the
first lines of the whoinfo file.
Create a file called favoritefoods, 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.
View the documentation for who, and then view the documentation for w How are
these commands similar?
Run the who uH and w commands using one commandline sequence to compare
the results.
Determine when the computer on which you are working was last booted.
Use the commandline history function to determine the most recent two commands you entered.
Run the who H cal and clear commands using one commandline sequence.
What do you end up with on the screen?
Use the history function to retrieve the command line you used in Exercise 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 commandline entry is
who u ; date u Execute the commandline entries.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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