Session Review

Session ID: 146
Mode: objective
Status: in_progress
Score: 0%

Filter: All | Incorrect | Flagged | Unanswered

Current filter: All

Back to Session

Question 1 (103.8-023 / command_line)

Enter the command that sets nano as the default text editor for the current shell session.

Status: Unanswered

Your Answer:

Accepted Answer(s):
export EDITOR=nano

Explanation:
The lesson gives export EDITOR=nano as the example [1].

Question 2 (103.8-022 / command_line)

Enter the command that opens /etc/fstab directly at line 9 using vi.

Status: Unanswered

Your Answer:

Accepted Answer(s):
vi +9 /etc/fstab

Explanation:
The lesson provides this exact example [1].

Question 3 (103.8-010 / multiple_choice)

Which command defines nano as the default editor in the current shell session according to the lesson?

Status: Unanswered

Your Answer:

Options:

Explanation:
The lesson gives export EDITOR=nano as the example for setting the default text editor in the current shell session [1].

Question 4 (103.8-021 / short_answer)

Which command opens the built-in step-by-step tutorial for vim?

Status: Unanswered

Your Answer:

Accepted Answer(s):
vimtutor

Explanation:
The lesson explicitly mentions vimtutor [1].

Question 5 (103.8-008 / multiple_choice)

Which vi command returns to navigation mode?

Status: Unanswered

Your Answer:

Options:

Explanation:
The lesson lists :visual as the command to go back to navigation mode [1].

Question 6 (103.8-013 / multiple_choice)

Which alternative editor is described as simpler than vi and using Ctrl key combinations for commands?

Status: Unanswered

Your Answer:

Options:

Explanation:
The lesson describes GNU nano as a simpler alternative to vi, where commands are given using the Ctrl key [1].

Question 7 (103.8-020 / short_answer)

Which environment variables can Bash use to determine the default text editor?

Status: Unanswered

Your Answer:

Accepted Answer(s):
VISUAL and EDITOR
EDITOR and VISUAL

Explanation:
The lesson states that Bash uses the session variables VISUAL or EDITOR [1].

Question 8 (103.8-024 / command_line)

Enter the vi command that exits without saving any changes.

Status: Unanswered

Your Answer:

Accepted Answer(s):
:q!
:quit!

Explanation:
The lesson lists both :q! and :quit! [1].

Question 9 (103.8-014 / multiple_choice)

What keys should be pressed in vi normal mode to indent the current selection three steps to the left?

Status: Unanswered

Your Answer:

Options:

Explanation:
The guided exercise answer states that the keys are 3< [1].

Question 10 (103.8-017 / short_answer)

What does vim stand for?

Status: Unanswered

Your Answer:

Accepted Answer(s):
vi improved

Explanation:
The lesson states that vim stands for 'vi improved' [1].