“atajos de Bash” Código de respuesta

atajos de concha

CTRL+A # go to beginning of line
CTRL+B # moves backward one character
CTRL+C # stops the current command
CTRL+D # deletes one character backward or logs out of current session
CTRL+E # go to end of line
CTRL+F # moves forward one character
CTRL+G # aborts the current editing command and ring the terminal bell
CTRL+K # deletes (kill) forward to end of line
CTRL+L # clears screen and redisplay the line
CTRL+N # next line in command history
CTRL+R # searches in your command history
CTRL+T # transposes two characters
CTRL+U # kills backward to the beginning of line
CTRL+W # kills the word behind the cursor
CTRL+Y # retrieves last deleted string
CTRL+Z # stops the current command, resume with fg in the foreground or bg in the background
Bolaji Oyedele

atajos de Bash

Bash shortcut – Navigation
Ctrl + a Go to the beginning of the line.
Ctrl + e Go to the end of the line.
Alt + f Move the cursor forward one word.
Alt + b Move the cursor back one word.
Ctrl + f Move the cursor forward one character.
Ctrl + b Move the cursor back one character.
Ctrl + x, x Toggle between the current cursor position and the beginning of the line.
 
David Cao

atajos de teclado

# Add to your ~/.bashrc or ~/.bash_aliases the follow command:
bind '"\C-f": "\C-a YOUR_COMMAND \C-j"'

# Example: 
bind '"\C-f": "\C-a echo $(date) \C-j"'
# When you press `CTRL`+`F` will run YOUR_COMMAND.
Tiago F2

atajos de teclado

## For BASH
# Add to your ~/.bashrc or ~/.bash_aliases the follow command:
bind '"\C-f": "\C-a YOUR_COMMAND \C-j"'

# Example: 
bind '"\C-f": "\C-a echo $(date) \C-j"' # CTRL+F run YOUR_COMMAND
####

## For ZSH
# Add to your ~/.zshrc the follow command:
bindkey -s "\C-f" "\C-a YOUR_COMMAND \C-j"

# Example: 
bindkey -s "\C-f" "\C-a date \C-j" # CTRL+F
Tiago F2

Respuestas similares a “atajos de Bash”

Preguntas similares a “atajos de Bash”

Más respuestas relacionadas con “atajos de Bash” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código