Command-line editing

Descrição

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.
Nasir Nawaz
Quiz por Nasir Nawaz, atualizado more than 1 year ago
Nasir Nawaz
Criado por Nasir Nawaz quase 8 anos atrás
15
0

Resumo de Recurso

Questão 1

Questão
This moves the cursor to the beginning of the command line.
Responda
  • Ctrl+A
  • Ctrl+B
  • Ctrl+C

Questão 2

Questão
Go forward one character.
Responda
  • Ctrl+F
  • Ctrl+D
  • Ctrl+P

Questão 3

Questão
Go backward one character.
Responda
  • Ctrl+B
  • Ctrl+K
  • Ctrl+

Questão 4

Questão
Go forward one word.
Responda
  • Alt+F
  • Alt+Q
  • Alt+Y

Questão 5

Questão
Go backward one word.
Responda
  • Alt+B
  • Alt+L
  • Alt+S

Questão 6

Questão
Go to the end of the line.
Responda
  • Ctrl+E
  • Ctrl+H
  • Ctrl+W

Questão 7

Questão
Clear screen and leave line at the top of the screen.
Responda
  • Ctrl+L
  • Ctrl+X
  • Ctrl+D

Questão 8

Questão
Delete the current character.
Responda
  • Ctrl+D
  • Ctrl+X
  • Ctrl+K

Questão 9

Questão
Delete the previous character.
Responda
  • BackSpace
  • Delete
  • Ctrl+X

Questão 10

Questão
Switch positions of current and previous characters
Responda
  • Ctrl+T
  • Ctrl+C
  • Ctrl+G

Questão 11

Questão
Switch positions of current and previous words
Responda
  • Alt+T
  • Alt+D
  • Alt+X

Questão 12

Questão
Change the current word to uppercase.
Responda
  • Alt+U
  • Alt+P
  • Alt+C

Questão 13

Questão
Change the current word to lowercase.
Responda
  • Alt+L
  • Alt+S
  • Alt+B

Questão 14

Questão
Change the current word to an initial capital.
Responda
  • Alt+C
  • Alt+B
  • Alt+M

Questão 15

Questão
Add a special character. For example, to add a Tab character, press Ctrl+V+Tab.
Responda
  • Ctrl+V
  • Ctrl+O
  • Ctrl+S

Questão 16

Questão
Cut text to the end of the line.
Responda
  • Ctrl+K
  • Ctrl+E
  • Ctrl+X

Questão 17

Questão
Cut text to the beginning of the line.
Responda
  • Ctrl+U
  • Ctrl+B
  • Ctrl+X

Questão 18

Questão
Cut the word located behind the cursor.
Responda
  • Ctrl+W
  • Ctrl+B
  • Ctrl+Z

Questão 19

Questão
Cut the word following the cursor.
Responda
  • Alt+D
  • Alt+Y
  • Alt+T

Questão 20

Questão
Paste most recently cut text.
Responda
  • Ctrl+Y
  • Ctrl+P
  • Ctrl+V

Questão 21

Questão
Rotate back to previously cut text and paste it.
Responda
  • Alt+Y
  • Alt+B
  • Alt+Q

Questão 22

Questão
Delete the entire line.
Responda
  • Ctrl+C
  • Ctrl+X
  • Ctrl+D

Semelhante

Common Shell Environment Variables
Nasir Nawaz
Components of An Operating System - Jason Madappattu
Jason EM
Linux - File Permissions
Mitch Isaacs
Linux Programming Interface: Chapter 1
Jon Schipp
RedHat Linux Version 7 System Administration Certification
John Sweet
SISTEMAS OPERATIVOS
Sebastian Molina
BASH
Fen Pin
3. Сокеты Беркли. Мультиплексирование.
Sergei Fomin
Computing
Jak Salad
Linux Programming Interface: Chapter 2
Jon Schipp
Terminal Commands
Cameron James