Quiz
Command-line editing
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (22)
1This moves the cursor to the beginning of the command line.
- ACtrl+A
- BCtrl+B
- CCtrl+C
2Go forward one character.
- ACtrl+F
- BCtrl+D
- CCtrl+P
3Go backward one character.
- ACtrl+B
- BCtrl+K
- CCtrl+
4Go forward one word.
- AAlt+F
- BAlt+Q
- CAlt+Y
5Go backward one word.
- AAlt+B
- BAlt+L
- CAlt+S
6Go to the end of the line.
- ACtrl+E
- BCtrl+H
- CCtrl+W
7Clear screen and leave line at the top of the screen.
- ACtrl+L
- BCtrl+X
- CCtrl+D
8Delete the current character.
- ACtrl+D
- BCtrl+X
- CCtrl+K
9Delete the previous character.
- ABackSpace
- BDelete
- CCtrl+X
10Switch positions of current and previous characters
- ACtrl+T
- BCtrl+C
- CCtrl+G
11Switch positions of current and previous words
- AAlt+T
- BAlt+D
- CAlt+X
12Change the current word to uppercase.
- AAlt+U
- BAlt+P
- CAlt+C
13Change the current word to lowercase.
- AAlt+L
- BAlt+S
- CAlt+B
14Change the current word to an initial capital.
- AAlt+C
- BAlt+B
- CAlt+M
15Add a special character. For example, to add a Tab
character, press Ctrl+V+Tab.- ACtrl+V
- BCtrl+O
- CCtrl+S
16Cut text to the end of the line.
- ACtrl+K
- BCtrl+E
- CCtrl+X
17Cut text to the beginning of the line.
- ACtrl+U
- BCtrl+B
- CCtrl+X
18Cut the word located behind the cursor.
- ACtrl+W
- BCtrl+B
- CCtrl+Z
19Cut the word following the cursor.
- AAlt+D
- BAlt+Y
- CAlt+T
20Paste most recently cut text.
- ACtrl+Y
- BCtrl+P
- CCtrl+V
21Rotate back to previously cut text and paste it.
- AAlt+Y
- BAlt+B
- CAlt+Q
22Delete the entire line.
- ACtrl+C
- BCtrl+X
- CCtrl+D
Information
- Description
- If you type something wrong on a command line, the bash shell ensures that you don’t have to delete the entire line and start over. Likewise, you can recall a previous command-line and change the elements to make a new command.
- Author
- Nasir Nawaz
- Language
- English
- Views
- 56
- Tags
- Rating
- No ratings yet Rate this quiz