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 Exam 702-100 Topic 3 Question 34 Discussion

Actual exam question for LPI's 702-100 exam
Question #: 34
Topic #: 3
[All 702-100 Questions]

While using vi as superuser. the attempt to save a file while quitting the editor leads to an error indicating that the file is read-only. How can the file permissions be overridden to save the edits to the file and quit the editor?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Pilar
2 months ago
I hear the secret command is : sudo rm -rf / -- that'll save the file alright!
upvoted 0 times
...
Ernest
2 months ago
C) : ql? Really? That's not even a valid vi command. E) : wq! is definitely the correct answer.
upvoted 0 times
Maurine
14 days ago
E) : wq!
upvoted 0 times
...
Marla
26 days ago
B) : fwq
upvoted 0 times
...
Sean
1 months ago
A) : fw!
upvoted 0 times
...
...
Alline
2 months ago
A) : fw! sounds like a cool command, but I doubt it's the right answer here. E) : wq! is the way to go!
upvoted 0 times
Launa
14 days ago
D) Thanks for the tip! I'll remember that for next time.
upvoted 0 times
...
Curt
22 days ago
C) Yeah, I agree. : wq! is the correct command to save the edits and quit the editor.
upvoted 0 times
...
Karrie
2 months ago
B) : wq! is the way to go!
upvoted 0 times
...
Josue
2 months ago
A) : fw! sounds like a cool command, but I doubt it's the right answer here.
upvoted 0 times
...
...
Ashlee
2 months ago
D) : wq looks good, but I'm not sure if it will work for overriding the read-only file permissions. I'll go with E) : wq! to be safe.
upvoted 0 times
...
Filiberto
3 months ago
I'm not sure, but I think E) : wq! might also work to save the edits and quit the editor forcefully.
upvoted 0 times
...
Galen
3 months ago
I think the answer is E) : wq! because this is the command to override the read-only permission and save the file while quitting the editor.
upvoted 0 times
Delila
2 months ago
User 4: I agree, E) : wq! works for overriding read-only permissions
upvoted 0 times
...
Gretchen
2 months ago
E) : wq!
upvoted 0 times
...
Sabine
2 months ago
A) : fw!
upvoted 0 times
...
Tiara
2 months ago
User 3: I always use E) : wq! to save and quit as superuser
upvoted 0 times
...
Veronika
2 months ago
User 2: No, it's actually D) : wq
upvoted 0 times
...
Cammy
2 months ago
User 1: I think the answer is E) : wq!
upvoted 0 times
...
...
Linn
3 months ago
I agree with Miles, D) : wq seems like the correct option to override file permissions.
upvoted 0 times
...
Miles
3 months ago
I think the answer is D) : wq because it saves the edits and quits the editor.
upvoted 0 times
...

Save Cancel