Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to open a file named notes.txt in nano editor.
Linux CLI
nano [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Typing the wrong file name.
Forgetting to specify the file name.
✗ Incorrect
The command
nano notes.txt opens the file named notes.txt in the nano text editor.2fill in blank
mediumComplete the command to save changes in nano using the keyboard shortcut.
Linux CLI
Press [1] then [2] to save the file in nano.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Pressing Ctrl + S instead of Ctrl + O.
Using Alt instead of Ctrl.
✗ Incorrect
In nano, pressing
Ctrl then O saves the current file.3fill in blank
hardFix the error in the command to exit nano without saving changes.
Linux CLI
Press [1] then [2] to exit nano without saving.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Pressing Ctrl + Q instead of Ctrl + X.
Using Alt instead of Ctrl.
✗ Incorrect
To exit nano, press
Ctrl then X. If there are unsaved changes, nano will ask to save or discard.4fill in blank
hardFill both blanks to search for the word error inside nano.
Linux CLI
Press [1] then [2] and type 'error' to search in nano.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using Ctrl + F instead of Ctrl + W.
Using Alt key instead of Ctrl.
✗ Incorrect
In nano, pressing
Ctrl + W opens the search prompt to find text.5fill in blank
hardFill all three blanks to replace the word old with new inside nano.
Linux CLI
Press [1] then [2] to start replace, type 'old', press Enter, type [3], then Enter.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using Ctrl + W instead of Ctrl + \.
Forgetting to type the new word.
✗ Incorrect
In nano,
Ctrl + \ starts replace. Then type the old word, press Enter, type the new word (here 'new'), and press Enter to replace.