![]() While typing a file, directory, or command name, press Tab and bash will automatically complete what you’re typing, if possible. Tab completion is a very useful bash feature. RELATED: Use Tab Completion to Type Commands Faster on Any Operating System Your cursor will move to the end of the current word. Alt+C: Capitalize the character under the cursor.Alt+L: Uncapitalize every character from the cursor to the end of the current word, converting the characters to lower case.Alt+U: Capitalize every character from the cursor to the end of the current word, converting the characters to upper case.The bash shell can quickly convert characters to upper or lower case: Ctrl+Y: Paste the last thing you cut from the clipboard.Ctrl+U: Cut the part of the line before the cursor, adding it to the clipboard.Ctrl+K: Cut the part of the line after the cursor, adding it to the clipboard.Ctrl+W: Cut the word before the cursor, adding it to the clipboard.You can repeat this to undo multiple times.īash includes some basic cut-and-paste features. You can use this to quickly fix typos when you type two characters in the wrong order. Ctrl+T: Swap the last two characters before the cursor with each other.Alt+T: Swap the current word with the previous word.These shortcuts allow you to fix typos and undo your key presses. Ctrl+H or Backspace: Delete the character before the cursor.Alt+D: Delete all characters after the cursor on the current line.Ctrl+D or Delete: Delete the character under the cursor.Use the following shortcuts to quickly delete characters: To use this shortcut, hold the Ctrl key and tap the X key twice. This allows you to press Ctrl+XX to return to the start of the line, change something, and then press Ctrl+XX to go back to your original cursor position. Ctrl+XX: Move between the beginning of the line and the current position of the cursor.Ctrl+F: Go right (forward) one character.Ctrl+E or End: Go to the end of the line. ![]() ![]() Ctrl+A or Home: Go to the beginning of the line.Use the following shortcuts to quickly move the cursor around the current line while typing a command. ![]()
0 Comments
Leave a Reply. |