Linux [shell command]


This will be a memo for learning. This time, we will learn frequently used shell commands (shortcut keys).

Move cursor

command Contents
Ctrl+f Move to next one character
Ctrl+b Move one character forward
Ctrl+a Move to the beginning of the line
Ctrl+e Move to end of line
Meta+f(esc+f) Move to the next word
Meta+b(esc+b) Move one word forward

Editing strings

command Contents
Ctrl+h Delete one character to the left of the cursor
Ctrl+d Delete one character in the cursor part
Ctrl+w Delete the word at the cursor position (the part before the cursor)
Ctrl+u Delete from the cursor position to the beginning of the line
Ctrl+k Delete from the cursor position to the end of the line
Ctrl+y Insert the last deleted content

Response in case of trouble

command Contents
Ctrl+c Forcibly terminate the command being executed
Ctrl+l Erase the screen. Can also be used to clear garbled characters
Ctrl+s Screen display lock (character input from the keyboard is not accepted)
Ctrl+q Unlock screen display

Completion / command history

command Contents
Tab Command and path completion
Ctrl+p or ↑ key View the previous history
Ctrl+n or ↓ key See the history after one
Ctrl+r Incremental search of command history

Recommended Posts

Linux [shell command]
Linux command # 4
Linux command # 3
Linux command # 5
linux at command
[Linux] Search command
Linux command <Basic 2>
Linux [directory command]
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
[Linux] Command / Knowledge
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Linux (command memory)
[Linux] Volume configuration command
Linux command (sequential update)
Linux basic command memorandum
Shell script command replacement
Linux command [File operation]
[Linux] Basic command summary
Linux command for self-collection
linux command error collection 1
Linux command line shortcut
linux sar command CPU usage
[Linux] tar.gz compression / decompression command
What is Linux? [Command list]
Easy df command on Linux
Linux tar xz command memo
Until the shell finds the command
Linux Command Dictionary (for myself)
linux: create original Terminal command
[Note] Useful linux command collection
Linux command memorandum [for beginners]
Linux PC spec check command
[Linux] User / group command summary
curl command show http status code in response (#Linux #Shell)
[Linux convenient command] Try inserting exa
Command to create Linux Live USB
Run shell command / python in R
[Linux] OS recovery with restore command
Completion of docker command on Linux
[Linux convenient command] Try inserting csview
Permission and ownership change command [Linux]
LINUX command [wc edition] Usage example
Linux command [ldconfig] LPIC learning memo
[linux] kill command to kill the process
[Linux convenient command] Try inserting bat
Linux command 16 procedure manual folder (completed)
Linux command (basic in basic) personal memo
Shell script numerical calculation bc command
Check the HTTP status code response with the curl command (#Linux #Shell)
linux memorandum
Linux commands