Identify the errors with the following commands and indicate possible solutions.
♥ 0 |
Identify the errors with the following commands and indicate possible solutions. (Hint: Try typing them at a shell prompt to view the error message.) Echo “This command does not work properly” date -z apropos man -k help date shutdown -c now echo “I would like lots of $$$” man 8 date |
Explanation
correct answers are
echo "This command does not work properly"
date +%z
man apropos
date --help
shutdown -h now
echo "I would like lot of \$\$"
man date
HOPE IT HELPS-----------------PLS GIVE A POSITIVE RATING WHICH IS VERY NEEDED -----------------TQ
Answer
Part 1. The first error in Echo because is in upper case. the way to type is echo
Corrected command is
echo "This commend working not properly"
Part 2.
The error in the command is "specifying the option". date command doesn't take any options.
Corrected command iis
date +%z
Part 3.
The error in the command is "specifying the option". apropos command doesn't take any options.
Corrected command is
man apropos
Part 4.
The error in the command is using date with help command. To help command displays the information of the shell commands. But date is not a shell command.
The following is the corrected command:
man date
Part 5.
The error in the command is "specifying the option". The command shutdown takes the option -c to cancel the already issued shut down command. To shut down the system -h option should be used.
The following is the corrected command:
shutdown -h now
Part 6.
The error in the command is "including $ symbols in the message and enclosed using double quotes". The message with $ symbols need to be masked using single quotes.
The following is the corrected command:
echo 'I would like lots of $$$'
Part 7.
The error in the command is the manual page number. The date command is in the page section 1 of the manual, but not in the page section 8 of the manual.
The following is the corrected command:
man date
The Best Research Paper Writing Service
Would you want to pay someone to write your paper professionally from scratch? 100% Original and 0% AI Content!.