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 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
1 months ago
I hear the secret command is : sudo rm -rf / -- that'll save the file alright!
upvoted 0 times
...
Ernest
1 months ago
C) : ql? Really? That's not even a valid vi command. E) : wq! is definitely the correct answer.
upvoted 0 times
Maurine
2 days ago
E) : wq!
upvoted 0 times
...
Marla
14 days ago
B) : fwq
upvoted 0 times
...
Sean
18 days 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
2 days ago
D) Thanks for the tip! I'll remember that for next time.
upvoted 0 times
...
Curt
10 days ago
C) Yeah, I agree. : wq! is the correct command to save the edits and quit the editor.
upvoted 0 times
...
Karrie
1 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
2 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
2 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
1 months ago
User 4: I agree, E) : wq! works for overriding read-only permissions
upvoted 0 times
...
Gretchen
1 months ago
E) : wq!
upvoted 0 times
...
Sabine
1 months ago
A) : fw!
upvoted 0 times
...
Tiara
1 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
2 months ago
I agree with Miles, D) : wq seems like the correct option to override file permissions.
upvoted 0 times
...
Miles
2 months ago
I think the answer is D) : wq because it saves the edits and quits the editor.
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