Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 101-500 Topic 1 Question 97 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 97
Topic #: 1
[All 101-500 Questions]

Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Tamala
27 days ago
Option D, of course! Gotta love those double-angle brackets, they make me all warm and fuzzy inside.
upvoted 0 times
...
Sherita
29 days ago
I'm feeling lucky, let's go with option B! Wait, is that the right command for Google?
upvoted 0 times
...
Felicitas
29 days ago
Hmm, I'm a bit unsure about this one. I might have to consult the man pages to be sure.
upvoted 0 times
...
Whitley
1 months ago
I'm going with option D, it will append the output of ls to the file data instead of overwriting it.
upvoted 0 times
Rolland
12 hours ago
I'm not sure, but I believe option A is the right choice, it creates or overwrites the file data with the output of ls.
upvoted 0 times
...
Lottie
14 days ago
I think option C is the correct one, it will overwrite the file data with the output of ls.
upvoted 0 times
...
...
Jill
1 months ago
Option C looks good to me, it will create or overwrite the file data with the output of ls.
upvoted 0 times
Clay
5 days ago
Yes, option C is the one that creates or overwrites the file data with the output of ls.
upvoted 0 times
...
Lavonna
11 days ago
I think you're right, option C is the correct command line for that.
upvoted 0 times
...
Van
1 months ago
Option C looks good to me, it will create or overwrite the file data with the output of ls.
upvoted 0 times
...
...
Timmy
2 months ago
I'm not sure, but I think D) ls >> data appends the output of ls to the file instead of overwriting it.
upvoted 0 times
...
Natalie
2 months ago
I agree with Royce, using > will create or overwrite the file with the output of ls.
upvoted 0 times
...
Royce
2 months ago
I think the answer is C) ls > data.
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