Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam LFCS Topic 8 Question 54 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 54
Topic #: 8
[All LFCS Questions]

Which of the following commands puts the output of the command date into the shell variable mydate?

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

Tawna
1 days ago
I'm not sure about option B, 'exec date' seems like it might actually execute the date command rather than capturing its output.
upvoted 0 times
...
Chery
20 days ago
Option A looks good, using command substitution to capture the output of the date command.
upvoted 0 times
Niesha
5 days ago
Yes, that's correct. Option A captures the output of the date command.
upvoted 0 times
...
Louis
6 days ago
A) mydate=\'$(date)\'
upvoted 0 times
...
...
Charlie
23 days ago
I'm not sure, but I think it's either A) or E) because they both involve capturing the output of the date command
upvoted 0 times
...
Bobbie
24 days ago
I agree with Novella, because using $(date) will capture the output of the date command
upvoted 0 times
...
Novella
27 days ago
I think the answer is A) mydate=$(date)
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77