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

LPI 101-500 Exam - Topic 2 Question 89 Discussion

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
C) sed -ie 's/1/2/' /tmp/myfile.txt
A) file /tmp/myfile.txt
B) echo 'Hello' >/tmp/myfile.txt
D) echo -n 'Hello' >>/tmp/myfile.txt
E) touch/tmp/myfile.txt

LPI 101-500 Exam - Topic 2 Question 89 Discussion

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

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Chanel
9 months ago
I thought echo -n would keep the timestamp the same, but I'm not sure!
upvoted 0 times
...
Myra
9 months ago
B and D definitely change the file, right?
upvoted 0 times
...
Adell
9 months ago
Wait, does touch really update the timestamp?
upvoted 0 times
...
Anisha
10 months ago
Totally agree, A is the right choice!
upvoted 0 times
...
Jeannetta
10 months ago
A will not update the timestamp.
upvoted 0 times
...
Reiko
10 months ago
I practiced a similar question, and I think `sed` modifies the file, so it should update the timestamp.
upvoted 0 times
...
Kristel
10 months ago
I feel like `echo -n` might not update the timestamp either, but I need to double-check how redirection works with that.
upvoted 0 times
...
Beth
10 months ago
I'm not entirely sure, but I remember something about `touch` always updating the timestamp, so it can't be that one.
upvoted 0 times
...
Carin
11 months ago
I think option A is the one that won't update the timestamp since it's just checking the file, not modifying it.
upvoted 0 times
...
Jerry
11 months ago
I'm feeling pretty confident about this one. I've seen similar questions before, so I think I know the right approach.
upvoted 0 times
...
Nancey
11 months ago
I'm a bit confused by this question. I'll have to review my notes on file timestamps to make sure I understand the concept.
upvoted 0 times
...
Danica
11 months ago
Okay, I think I've got a strategy here. I'll eliminate the obvious ones first, then focus on the more subtle differences between the remaining options.
upvoted 0 times
...
Roxane
11 months ago
Hmm, I'm not sure about this one. I'll have to test out each command to see which one doesn't update the modify timestamp.
upvoted 0 times
...
Ivory
11 months ago
This looks like a tricky question. I'll need to think through each option carefully.
upvoted 0 times
...
Galen
11 months ago
I think the key here is to identify the characteristics that would be most relevant for properly assigning and scheduling the field technicians. Certification and skill level seem like the most important factors.
upvoted 0 times
...
Christa
11 months ago
This looks like a question about service-oriented architecture principles. I'll need to think carefully about which one is most commonly applied during the service modeling process.
upvoted 0 times
...
Gwenn
11 months ago
Hmm, I'm not sure about this one. I'd have to double-check the GDPR requirements for processing personal data. Maybe B. Performance of a contract could work too?
upvoted 0 times
...
Vince
1 year ago
Wait, there's a file called 'myfile.txt' in /tmp? That's like the Linux equivalent of 'C:\\Temp' - it's where all the weird stuff happens!
upvoted 0 times
Sheron
1 year ago
I wonder what kind of weird stuff happens in /tmp/myfile.txt.
upvoted 0 times
...
Diego
1 year ago
The command 'touch /tmp/myfile.txt' will NOT update the modify timestamp on the file.
upvoted 0 times
...
Vi
1 year ago
Yes, there is a file called 'myfile.txt' in /tmp.
upvoted 0 times
...
...
Kenda
1 year ago
C looks interesting, but I'm not sure if 'sed' updates the timestamp. Gotta be careful with those tricky Linux commands, you know?
upvoted 0 times
...
Yvonne
1 year ago
Haha, option E is just too easy. Who doesn't know that 'touch' updates the timestamp? It's like the Linux equivalent of 'sudo' - everyone knows it!
upvoted 0 times
Lenna
1 year ago
User 3: So the answer is E, right?
upvoted 0 times
...
Marg
1 year ago
User 2: Yeah, 'touch' is a basic command in Linux.
upvoted 0 times
...
Chara
1 year ago
User 1: I agree, option E is definitely the one that won't update the timestamp.
upvoted 0 times
...
...
Vanesa
1 year ago
Hmm, I'm torn between B and D. Doesn't the 'echo' command update the timestamp? I need to double-check that.
upvoted 0 times
...
Paulina
1 year ago
Option A won't update the timestamp because it just checks the file, not modifying it. Seems like the obvious choice here.
upvoted 0 times
...
Tasia
1 year ago
I believe option E will also not update the modify timestamp because it just touches the file without changing its content.
upvoted 0 times
...
Corinne
1 year ago
I agree with Alline. Option A is just checking the file, not modifying it.
upvoted 0 times
...
Alline
1 year ago
I think option A will not update the modify timestamp.
upvoted 0 times
...

Save Cancel