In: Computer Science
CompTIA Linux+ Guide to Linux Certification (4th Edition)(Please do not do it in a mac and add pictures of the machine.)
Project 2-5 In this hands-on project, you find information about commands using help utilities.
1. Press CtrlþAltþF2 to switch to a command-line terminal (tty2), and then log in to the terminal using the user name of root and the password of LNXrocks!.
2. At the command prompt, type man –k cron and press Enter to view a list of manual pages that have the word “cron” in the name or description. Use Table 2-8 to determine what type of manual pages are displayed. How many manual pages are there for crontab? Are they different types of manual pages? If you do not see any output from the man –k command, run the mandb command to generate the manual pages index.
3. At the command prompt, type man crontab and press Enter to view the manual page for the crontab command. Observe the syntax of the crontab command and press q when finished to quit the manual page and return to your command prompt.
4. At the command prompt, type man 5 crontab and press Enter to view the manual page for the crontab file format. Observe the syntax of the crontab file format and press q when finished to quit the manual page and return to your command prompt.
5. At the command prompt, type info and press Enter to view a list of available GNU info pages. When finished, press q to quit the info utility.
6. At the command prompt, type info date and press Enter to view syntax information regarding the date command, and press q to quit the info utility when finished.
7. At the command prompt, type help to view a list of BASH shell functions that have documentation. If the list is too long for your terminal, press the Shift and Page Up keys simultaneously to shift one page up to view the top of the list. Then press the Shift and Page Down keys simultaneously to shift one page down to view your command prompt again.
8. At the command prompt, type help exit to view information on the exit command, a function of your BASH shell.
9. Type exit and press Enter to log out of your shell.
Solution:
Please follow the screenshots for better understanding.............
1)
Login into the terminal
Passwords wont be visible in linux when you type them
2)
As you can see the output contains a man documnet with a number in paranthesis..
anacrontab is marked with number 5 because it is a configuration file for anacron located at /etc/anacrontab
anacron , cron are marked with number 8 because these are system administration commands and can be executed from the terminal.
crontab is marked with the number 1 and 5 which means it can be used as a general command and there is a man page for how to write a crontab configuration file .
There are 2 man pages for crontab and they both are different.
3)
This will display
You can find how to use the crontab command in the first two lines of the SYNOPSIS
4)
After Enter you will get the man page for crontab file format If you scroll down the man page you can see the syntax of the crontab file
5)
Typing info command in the terminal
It shows the output
6)
Using info date
Output
7)
using help command
8)
Seeing informantion about exit with help command
9)
exiting the terminal
I hope this would help........................:-))