Command-line editing

Descripción

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
Test por Nasir Nawaz, actualizado hace más de 1 año
Nasir Nawaz
Creado por Nasir Nawaz hace alrededor de 7 años
8
0

Resumen del Recurso

Pregunta 1

Pregunta
This moves the cursor to the beginning of the command line.
Respuesta
  • Ctrl+A
  • Ctrl+B
  • Ctrl+C

Pregunta 2

Pregunta
Go forward one character.
Respuesta
  • Ctrl+F
  • Ctrl+D
  • Ctrl+P

Pregunta 3

Pregunta
Go backward one character.
Respuesta
  • Ctrl+B
  • Ctrl+K
  • Ctrl+

Pregunta 4

Pregunta
Go forward one word.
Respuesta
  • Alt+F
  • Alt+Q
  • Alt+Y

Pregunta 5

Pregunta
Go backward one word.
Respuesta
  • Alt+B
  • Alt+L
  • Alt+S

Pregunta 6

Pregunta
Go to the end of the line.
Respuesta
  • Ctrl+E
  • Ctrl+H
  • Ctrl+W

Pregunta 7

Pregunta
Clear screen and leave line at the top of the screen.
Respuesta
  • Ctrl+L
  • Ctrl+X
  • Ctrl+D

Pregunta 8

Pregunta
Delete the current character.
Respuesta
  • Ctrl+D
  • Ctrl+X
  • Ctrl+K

Pregunta 9

Pregunta
Delete the previous character.
Respuesta
  • BackSpace
  • Delete
  • Ctrl+X

Pregunta 10

Pregunta
Switch positions of current and previous characters
Respuesta
  • Ctrl+T
  • Ctrl+C
  • Ctrl+G

Pregunta 11

Pregunta
Switch positions of current and previous words
Respuesta
  • Alt+T
  • Alt+D
  • Alt+X

Pregunta 12

Pregunta
Change the current word to uppercase.
Respuesta
  • Alt+U
  • Alt+P
  • Alt+C

Pregunta 13

Pregunta
Change the current word to lowercase.
Respuesta
  • Alt+L
  • Alt+S
  • Alt+B

Pregunta 14

Pregunta
Change the current word to an initial capital.
Respuesta
  • Alt+C
  • Alt+B
  • Alt+M

Pregunta 15

Pregunta
Add a special character. For example, to add a Tab character, press Ctrl+V+Tab.
Respuesta
  • Ctrl+V
  • Ctrl+O
  • Ctrl+S

Pregunta 16

Pregunta
Cut text to the end of the line.
Respuesta
  • Ctrl+K
  • Ctrl+E
  • Ctrl+X

Pregunta 17

Pregunta
Cut text to the beginning of the line.
Respuesta
  • Ctrl+U
  • Ctrl+B
  • Ctrl+X

Pregunta 18

Pregunta
Cut the word located behind the cursor.
Respuesta
  • Ctrl+W
  • Ctrl+B
  • Ctrl+Z

Pregunta 19

Pregunta
Cut the word following the cursor.
Respuesta
  • Alt+D
  • Alt+Y
  • Alt+T

Pregunta 20

Pregunta
Paste most recently cut text.
Respuesta
  • Ctrl+Y
  • Ctrl+P
  • Ctrl+V

Pregunta 21

Pregunta
Rotate back to previously cut text and paste it.
Respuesta
  • Alt+Y
  • Alt+B
  • Alt+Q

Pregunta 22

Pregunta
Delete the entire line.
Respuesta
  • Ctrl+C
  • Ctrl+X
  • Ctrl+D
Mostrar resumen completo Ocultar resumen completo

Similar

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