You are using vi or another text editor to write a technical article for your organization's website, and after altering a couple of lines of content, you want to save and exit the file. Which of the following keystrokes will accomplish saving and exiting the file?(Choose two.)
a. Press the Esc key to ensure you are in command mode, then type :wq and press Enter.
b. Press the Esc key to ensure you are in command mode, then type ZZ (in uppercase) and press Enter.
c. Press the Esc key to ensure you are in command mode, then type :x and press Enter.
d. Press the Esc key to ensure you are in command mode, then type :wq! and press Enter.

Q&A Education