Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It can be hard to remember all the commands and how to use them. The Unix operating system comes with a built-in manual (man pages)

It can be hard to remember all the commands and how to use them. The Unix operating system comes with a built-in manual (man pages) so that you can look up the details for how to use each command. Additional help facilities offered by Linux are the info command and the --help option.

This part of the lab is intended to give you practice using these commands. While it is possible to answer the below questions using Internet search engine, you are required to use only man pages, info command, and/or --help option.

For each question, you must give an answer as well as the source of your answer. For example, man page (or section) 2, info page, etc.

To answer the questions, follow the steps below:

Step 1 Log into the lab computer with your username and password

Step 2 Change your working directory to CST383s17

Step 3 Start capturing your session under filename lab1.script

Step 4 Create the file lab1.1 and type in your answers to the questions below. When this file is displayed with the cat command, the lines should be numbered, each number corresponding to the question number.

1. Use the manual pages to explain the use of the following man options: man –h; man –k; man –a; and man –f

2. The command passwd is documented in more than one man page or section. Find out those section numbers.

3. The default output from the man command is the first manual page found. How do you force man to display all the manual pages for a particular command?

4. How do you ask man to display the entry from a particular section; for example displaying the entry from section 3p for the command mkdir?

5. What should the command “cat lab1.1 – lab1.2” do? (Don't try to run it, just figure it out from the documentation. Assume lab1.1 and lab1.2 are existing files. Note the spaces and the dash in the command line.)

6. What three options to the date command can be used to display the current date and time in Coordinated Universal Time?

7. The command man usually contains far more information about a command than you need. The commands info, apropos, or --help could be more helpful. Which of these can give you a quick guide to printing the current month name (eg. January) using the date command?

8. Which man page section provides documentation for the command uname as used to obtain the “name and information about the current kernel” ?

Step 5 Terminate your session recording

Step by Step Solution

3.45 Rating (164 Votes )

There are 3 Steps involved in it

Step: 1

man hprints the help message related to all the options of man and exit man kthis commands helps in printing all the given english word given by user ... 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

Intermediate Accounting principles and analysis

Authors: Terry d. Warfield, jerry j. weygandt, Donald e. kieso

2nd Edition

471737933, 978-0471737933

More Books

Students also viewed these Accounting questions

Question

What do you think your problem does to you?

Answered: 1 week ago