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 1 Question 93 Discussion

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

The output of the program date should be saved in the variable actdat. What is the correct statement?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Iluminada
20 days ago
Ooh, I know this one! A is the way to go. It's the classic Unix way of capturing command output. Plus, it's more elegant than E, which just looks lazy.
upvoted 0 times
...
Tomas
22 days ago
B is just weird. Why would you use single quotes when you can use backticks? It's like using a rotary phone in the 21st century.
upvoted 0 times
...
Vincenza
24 days ago
D makes no sense. You can't redirect the output of date to a variable. What is this, amateur hour?
upvoted 0 times
...
Kaitlyn
27 days ago
I'm gonna go with E. It's shorter and more straightforward than the other options.
upvoted 0 times
Brittni
4 days ago
I agree with you, E seems like the best choice.
upvoted 0 times
...
Miriam
7 days ago
I think A is the correct statement.
upvoted 0 times
...
...
Maryann
1 months ago
A is the correct answer. The backticks are used to capture the output of the date command and store it in the variable actdat.
upvoted 0 times
Lashawnda
12 days ago
E) actdat=date
upvoted 0 times
...
Howard
16 days ago
That makes sense, using backticks is the way to go.
upvoted 0 times
...
Buck
18 days ago
A) actdat=`date`
upvoted 0 times
...
...
Peter
1 months ago
I'm not sure, but I think option D) date > $actdat is incorrect because it uses the wrong operator for saving the output of the date command.
upvoted 0 times
...
Stephen
2 months ago
I agree with Lemuel. Using backticks will save the output of the date command in the variable actdat.
upvoted 0 times
...
Lemuel
2 months ago
I think the correct statement is A) actdat=`date`.
upvoted 0 times
...

Save Cancel