exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 74 discussion

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

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

  • A. esc ZZ
  • B. ctrl :w!
  • C. esc zz
  • D. esc :wq!
  • E. ctrl XX
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
9866666
5 months, 1 week ago
Selected Answer: AD
he correct answers are: A. esc ZZ - This is a common shortcut to save the current file and exit vi. D. esc :wq! - This is the command mode version of saving and quitting, with the '!' forcing the write even if there are potential warnings. Here's why the other options are incorrect: B. ctrl :w! - The control key (ctrl) is not typically used with the colon command in vi. C. esc zz - There is no 'zz' command in vi. E. ctrl XX - The control key (ctrl) is not typically used for exiting vi.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...