Nasir Nawaz
Quiz by , created more than 1 year ago

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.

8
0
0
Nasir Nawaz
Created by Nasir Nawaz about 7 years ago
Close

Command-line editing

Question 1 of 22

1

This moves the cursor to the beginning of the command line.

Select one of the following:

  • Ctrl+A

  • Ctrl+B

  • Ctrl+C

Explanation

Question 2 of 22

1

Go forward one character.

Select one of the following:

  • Ctrl+F

  • Ctrl+D

  • Ctrl+P

Explanation

Question 3 of 22

1

Go backward one character.

Select one of the following:

  • Ctrl+B

  • Ctrl+K

  • Ctrl+

Explanation

Question 4 of 22

1

Go forward one word.

Select one of the following:

  • Alt+F

  • Alt+Q

  • Alt+Y

Explanation

Question 5 of 22

1

Go backward one word.

Select one of the following:

  • Alt+B

  • Alt+L

  • Alt+S

Explanation

Question 6 of 22

1

Go to the end of the line.

Select one of the following:

  • Ctrl+E

  • Ctrl+H

  • Ctrl+W

Explanation

Question 7 of 22

1

Clear screen and leave line at the top of the screen.

Select one of the following:

  • Ctrl+L

  • Ctrl+X

  • Ctrl+D

Explanation

Question 8 of 22

1

Delete the current character.

Select one of the following:

  • Ctrl+D

  • Ctrl+X

  • Ctrl+K

Explanation

Question 9 of 22

1

Delete the previous character.

Select one of the following:

  • BackSpace

  • Delete

  • Ctrl+X

Explanation

Question 10 of 22

1

Switch positions of current and previous characters

Select one of the following:

  • Ctrl+T

  • Ctrl+C

  • Ctrl+G

Explanation

Question 11 of 22

1

Switch positions of current and previous words

Select one of the following:

  • Alt+T

  • Alt+D

  • Alt+X

Explanation

Question 12 of 22

1

Change the current word to uppercase.

Select one of the following:

  • Alt+U

  • Alt+P

  • Alt+C

Explanation

Question 13 of 22

1

Change the current word to lowercase.

Select one of the following:

  • Alt+L

  • Alt+S

  • Alt+B

Explanation

Question 14 of 22

1

Change the current word to an initial capital.

Select one of the following:

  • Alt+C

  • Alt+B

  • Alt+M

Explanation

Question 15 of 22

1

Add a special character. For example, to add a Tab
character, press Ctrl+V+Tab.

Select one of the following:

  • Ctrl+V

  • Ctrl+O

  • Ctrl+S

Explanation

Question 16 of 22

1

Cut text to the end of the line.

Select one of the following:

  • Ctrl+K

  • Ctrl+E

  • Ctrl+X

Explanation

Question 17 of 22

1

Cut text to the beginning of the line.

Select one of the following:

  • Ctrl+U

  • Ctrl+B

  • Ctrl+X

Explanation

Question 18 of 22

1

Cut the word located behind the cursor.

Select one of the following:

  • Ctrl+W

  • Ctrl+B

  • Ctrl+Z

Explanation

Question 19 of 22

1

Cut the word following the cursor.

Select one of the following:

  • Alt+D

  • Alt+Y

  • Alt+T

Explanation

Question 20 of 22

1

Paste most recently cut text.

Select one of the following:

  • Ctrl+Y

  • Ctrl+P

  • Ctrl+V

Explanation

Question 21 of 22

1

Rotate back to previously cut text and paste it.

Select one of the following:

  • Alt+Y

  • Alt+B

  • Alt+Q

Explanation

Question 22 of 22

1

Delete the entire line.

Select one of the following:

  • Ctrl+C

  • Ctrl+X

  • Ctrl+D

Explanation