05/14/2018
linux
admin admin
Chapter 1: Getting started with GNU/Linux Section 1.1: Useful shortcuts Using The Terminal The examples in this document assume that you are using a POSIX-compliant (such as bash, sh, zsh, ksh) shell. Large portions of GNU/Linux functionality are achieved using the terminal. Most distributions of Linux include terminal emulators that allow users to interact with a shell from their desktop environment. A shell is a commandline interpreter that executes user inputted commands. Bash (Bourne Again SHell) is a common default shell among many Linux distributions and is the default shell for macOS. These shortcuts will work if you are using Bash with the emacs keybindings (set by default): Open terminal Ctrl + Alt + T or Super + T Cursor movement Ctrl + A Go to the beginning of the line you are currently typing on. Ctrl + E Go to the end of the line you are currently typing on. Ctrl + XX Move between the beginning of the line and the current position of the cursor. Alt + F Move cursor forward one word on the current line. Alt + B Move cursor backward one word on the current line. Ctrl + F Move cursor forward one character on the current line. Ctrl + B Move cursor backward one character on the current line. Text manipulation Ctrl + U Cut the line from the current position to the beginning of the line, adding it to the clipboard. If you are at the end of the line, cut the entire line. Ctrl + K Cut the line from the current position to the end of the line, adding it to the clipboard. If you are at the beginning of the line, cut the entire line. Ctrl + W Delete the word before the cursor, adding it to the clipboard. Ctrl + Y Paste the last thing from the clipboard that you cut recently (undo the last delete at the current cursor position). Alt + T Swap the last two words before the cursor. Alt + L Make lowercase from cursor to end of word. Alt + U Make uppercase from cursor to end of word. Alt + C Capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word). Alt + D Delete to end of word starting at cursor (whole word if cursor is at the beginning of word). Alt + . Prints the last word written in previous command. Ctrl + T Swap the last two characters before the cursor. History access Ctrl + R Lets you search through previously used commands. Ctrl + G Leave history searching mode without running a command. Ctrl + J Lets you copy current matched command to command line without running it, allowing you to

  • VIA
  • admin
  • TAGS



LEAVE A COMMENT

Facebook Conversations

FOLLOW US