0
0
Linux CLIscripting~10 mins

nano text editor in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Anotes.txt
Bedit.txt
Cfile.txt
Ddocument.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Typing the wrong file name.
Forgetting to specify the file name.
2fill in blank
medium

Complete 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'
ACtrl
BAlt
CO
DS
Attempts:
3 left
💡 Hint
Common Mistakes
Pressing Ctrl + S instead of Ctrl + O.
Using Alt instead of Ctrl.
3fill in blank
hard

Fix 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'
ACtrl
BAlt
CX
DQ
Attempts:
3 left
💡 Hint
Common Mistakes
Pressing Ctrl + Q instead of Ctrl + X.
Using Alt instead of Ctrl.
4fill in blank
hard

Fill 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'
ACtrl
BAlt
CW
DF
Attempts:
3 left
💡 Hint
Common Mistakes
Using Ctrl + F instead of Ctrl + W.
Using Alt key instead of Ctrl.
5fill in blank
hard

Fill 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'
ACtrl
BR
Cnew
DW
Attempts:
3 left
💡 Hint
Common Mistakes
Using Ctrl + W instead of Ctrl + \.
Forgetting to type the new word.