Bash Shell Shortcuts

MySprtlty·2023년 2월 16일
0

Linux

목록 보기
1/6
post-thumbnail

🏷️Bash Shell Shortcuts

  • 자주 사용하는 단축키만 정리

📌Working With Processes

  • Ctrl+C: Interrupt (kill) the current foreground process running in in the terminal. This sends the SIGINT signal to the process, which is technically just a request—most processes will honor it, but some may ignore it.
  • Ctrl+Z: Suspend the current foreground process running in bash. This sends the SIGTSTP signal to the process. To return the process to the foreground later, use the fg process_name command.
  • Ctrl+D: Close the bash shell. This sends an EOF (End-of-file) marker to bash, and bash exits when it receives this marker. This is similar to running the exit command.

📌Controlling the Screen

The following shortcuts allow you to control what appears on the screen.

  • Ctrl+L: Clear the screen. This is similar to running the “clear” command.

📌Moving the Cursor

Use the following shortcuts to quickly move the cursor around the current line while typing a command.

  • Ctrl+A: Go to the beginning of the line.
  • Ctrl+E: Go to the end of the line.
  • `Alt+B: Go left (back) one word.
  • Ctrl+B: Go left (back) one character.
  • Alt+F: Go right (forward) one word.
  • Ctrl+F: Go right (forward) one character.

📌Deleting Text

Use the following shortcuts to quickly delete characters:

  • Ctrl+D: Delete the character under the cursor.
  • Alt +D: Delete a word after the cursor.
  • Ctrl+U: Delete all characters before the cursor on the current line.

출처

0개의 댓글