Home » LPI » 117-201 » Which of the following commands will work?
You have written a script called usrs to parse the passwd file and create a list of usernames. You want to have this run at 5 am tomorrow so you can see the results when you get to work. Which of the following commands will work?
A. at 5:00 wed usrs
B. at 5:00 wed -b usrs
C. at 5:00 wed -l usrs
D. at 5:00 wed -d usrs
Correct Answer: A
Explanation/Reference:
Explanation: The ‘at’ command is used to execute commands at a specified time and optional date. It can contain an optional date, formed as a month and date, a day of the week, or a special keyword (today or tomorrow). An increment can also be specified.
Reference: http://www.oreillynet.com/linux/cmd/a/at.html
Incorrect Answers
B:No options are required to run the script at the specified time. Furthermore, the options should be specified before the time and date, not after them.
C:No options are required to run the script at the specified time. Furthermore, the options should be specified before the time and date, not after them.
D:No options are required to run the script at the specified time. Furthermore, the options should be specified before the time and date, not after them.
Download Printable PDF. VALID exam to help you PASS.
|
|