Mac OS Terminal several shortcut keys

Source: Internet
Author: User
Tags apple keyboard

Https://www.cnblogs.com/abeen/p/4104158.html

The combination of several keys in Mac system can make the operation of terminal more flexible and convenient.

1. Move the cursor to the beginning of the line: Ctrl + A

2. Move the cursor to the end of the line: Ctrl + E

3. Clear the Screen: Ctrl + L

4. Search for previously used commands: Ctrl + R

5. Clear the current line: Ctrl + U

6, clear to the end of the current line: Ctrl + K

7. Move the Word unit: Option + arrow key

Start shortcut keys
Press the key or key combination until the desired function appears (for example, hold Option during startup until Start Manager appears, or hold down SHIFT until safe boot appears). Tip: If the startup feature doesn't work and you're using a third-party keyboard, connect the Apple keyboard and try again.
Key or key combination function
option to display all bootable volumes (boot manager)
Shift performs a secure boot (starts in safe mode)
c Booting from bootable disk (DVD, CD)
T starts in FireWire target disk mode
n booting from the NetBoot server
X force Mac OS X to start (if a non-MAC OS X boot volume exists)
Command-v start in verbose mode
Command-s start in single-user mode

Finder shortcut keys
Key combination function
Command-a all items in the Front Finder window are selected (Desktop content is selected if no windows are open)
Option-command-a Deselect All items
Shift-command-a Open the Applications folder
Command-c Copy selected items/text to clipboard
Shift-command-c Open the Computer window
command-d Copy the selected item
Shift-command-d Open Desktop Folder
COMMAND-E launched
Command-f find any content that matches the Spotlight property
Shift-command-f find Spotlight file name matches
Option-command-f navigating to the search bar in an open Spotlight window
Shift-command-g Go to Folder
Shift-command-h Open the Personal folder of the currently logged-on user account
Command-i Display Introduction
Option-command-i Display Inspector
Control-command-i Get summary information
Shift-command-i Open IDisk
Command-j Bring up the "display" option
Command-k connecting to a server
Shift-command-k Open the Network window
Command-l creating aliases for selected items
command-m minimized window
Option-command-m Minimize All windows
Command-n New Finder window
Shift-command-n new Folder
Option-command-n New Smart Folder
Command-o Open the selected item
Shift-command-q logoff
OPTION-SHIFT-COMMAND-Q Immediate Logout
Command-r display (avatar) of the original body
Command-t Add to Toolbar
Shift-command-t Adding to your favorites
Option-command-t hide toolbars/Show toolbars in Finder window
Shift-command-u Open the Utilities folder
Command-v paste
Command-w Close Window
Option-command-w Close All windows
Command-x Cut
Option-command-y Slide Show (Mac OS X 10.5 or later)
Command-z Restore/Redo
Command-1 Display As Icon
Command-2 List mode display
COMMAND-3 Display in column mode
Command-4 displayed as Cover Flow (Mac OS X 10.5 or later)
command-, (Command plus comma key) Open Finder preferences
Command-' (Accent key-Top Tab in American English keyboard layout) Loops Open Finder window
Command-shift-? Turn on Mac help
Option-shift-command-esc (press and hold for three seconds)-only Mac OSXv10.5, v10.6, or later forces exiting the front-most application
Command-[back
Command-] Forward
Command-up arrow open the included folder
Control-command-up Arrow opens the included folder in a new window
Command-down ARROW to open highlighted item
Command-tab switching applications-loop forward
Shift-command-tab Switching applications-loop backwards
Command-delete move to Trash
Shift-command-delete emptying the wastepaper basket
Option-shift-command-delete emptying the Trash (No confirmation dialog box is displayed)
Space bar (or command-y) Quick View (Mac OS X 10.5 or later)
Move the dragged item to another volume/location by pressing the Command key while dragging (press and hold the button when the pointer icon changes-see this article)
option to copy dragged items while dragging (the pointer icon changes when you press and hold the key-see this article)
When dragging, press Option-command to create an alias for the dragged item (the pointer icon changes when you press and hold the key-see this article)

Applications and other MAC OS X keyboard commands
Note: Some applications may not support all of the following application key combinations.
Key combination function
Command-spacebar to show or hide the Spotlight search bar (if multiple languages are installed, you may cycle through the enabled languages)
Option-command-SPACEBAR to display the Spotlight Search Results window (if you have multiple languages installed, you may cycle through the keyboard layout and input method under a language)
Command-tab in the list of open applications, move down to the next most recently used application
Shift-command-tab move up in the list of open applications (sorted by last-use time)
Shift-tab navigating the controls in the opposite direction
Control-tab the next set of controls in the Focus dialog box or focus on the next table (when the Tab moves to the next cell)
Shift-control-tab Focus on a group of controls
Command-esc Open Front Row (if installed)
option-eject key from the alternate optical drive (if installed)
control-Launch key display shutdown dialog box
option-command-launch key to put the computer into sleep mode
control-command-eject key to exit all applications (will let you store changes made to an open document first), and then restart your computer
Control option-command-eject key to exit all applications (you will be asked to save changes to the open document first), then turn off the computer
Fn-delete forward Delete (for portable Mac built-in keyboard)
CONTROL-F1 Toggle full Keyboard control on or off
Control-f2 Focus Menu Bar
CONTROL-F3 Spotlight Dock
Control-f4 Focus active window or next window
Shift-control-f4 focus on an active window
Control-f5 Focus Toolbar
Control-f6 Focus on the first (or next) panel
Shift-control-f6 focus on the previous panel
Control-f7 the current keyboard control mode in the Temporary Overlay window and dialog box
F9 collage or un-collage all open windows
F10 collage or un-tile all open windows in the active application
F11 hide or Show all open windows
F12 Hide or show Dashboard
Command-' Activates the next open window in the front-most application
Shift-command-' Activates the previous open window in the front-most application
option-command-' Focus window drawer
Command--(minus) narrow the selection
Command-{make the selection left-justified
command-} to align the selection to the right
Command-| aligns the selection to the center
command-: Display the spelling window
command-: Finding misspelled words in a document
command-, open the Preferences window for the front-most application (provided the application supports this shortcut)
option-control-command-, reducing screen contrast
option-control-command-. Enhanced screen Contrast
Command-? To open the application's help in the Help display program
option-command-/turn font smoothing on or off
shift-command-= to enlarge the selected item
Shift-command-3 capturing a screen to a file
Shift-control-command-3 capture the screen to the Clipboard
Shift-command-4 capturing the selection to a file
Shift-control-command-4 capture the selection to the Clipboard
Command-a highlight all items in a document or window, or highlight all characters in a text field
Command-b display selected text in bold or toggle text bold display on/off
COMMAND-C Copy the selected data to the Clipboard
Shift-command-c Display the Colors window
Option-command-c Copy the style of the selected text
Control-command-c Copy the formatting of the selected item and store it in the Clipboard
Option-command-d Show or hide the Dock
Command-control d Displays the definition of the selected word in the dictionary application
Command-e to find using the selection
Command-f Open the Find window
Option-command-f move to the search bar control
Command-g find the next location where the selection appears
Shift-command-g find the previous location for the selection
Command-h hiding the currently running application window
Option-command-h Hide all other running application windows
Command-i display selected text in italics or toggle text italic display on/off
Option-command-i Show Inspector Window
Command-j Scroll to the selected section
Command-m minimize the active window to the Dock
Option-command-m minimize All windows of an active application to the Dock
Command-n creating a new document in the first application
Command-o Display dialog box for selecting documents to open in the front of the application
Command-p Display the Print dialog box
Shift-command-p Display dialog box for specifying Print parameters (Page Setup)
Command-q exiting the front-most application
Command-s Storing Active Documents
Shift-command-s Display the Save As dialog box
COMMAND-T Display the Fonts window
Option-command-t Show or hide a toolbar
Command-u underline or turn on/off underline selected text
Command-v Paste the contents of the Clipboard at the insertion point location
Option-command-v apply the style of an object to the selected object (Paste style)
Option-shift-command-v apply the style of the surrounding text to the inserted object (paste and match style)
Control-command-v apply formatting to the selected object (paste Ruler command)
Command-w Close the front window
Shift-command-w closing a file and its associated window
Option-command-w do not exit the application directly close all its windows
Command-x remove the selection and save it to the Clipboard
Command-z Restore previous command (some applications allow multiple restores)
Shift-command-z Redo the previous command (some applications allow multiple redo)
control-RIGHT arrow focus another value or cell within a view (such as a table)
Control-left arrow focus on another value or cell in a view (such as a table)
Control-down ARROW to focus another value or cell within a view (such as a table)
control-another value or cell in the focus view (such as a table)
Command-right ARROW moves the text insertion point to the end of the current line
Command-left arrow moves the text insertion point to the beginning of the current line
Command-down arrow moves the text insertion point to the end of the document
Command-up ARROW moves the text insertion point to the beginning of the document
shift-command-right ARROW Select the text between the insertion point and the end of the current line (*)
Shift-command-LEFT arrow Select the text between the insertion point and the beginning of the current line (*)
shift-right arrow extends text selection one character to the right (*)
Shift-left arrow extends text selection one character to the left (*)
shift-command-up ARROW Select the text between the insertion point and the beginning of the document (*)
Shift-command-down ARROW Select the text between the insertion point and the end of the document (*)
shift-up arrow expands text selection to the nearest character Edge (*) at the same horizontal position as the previous line
Shift-down arrow extends text selection to the nearest character Edge (*) at the same horizontal position as the next line
Shift-option-the right arrow expands the text selection to the ending of the current word, and then expands to the last word (*) by pressing once.
Shift-option-left Arrow expands the text selection to the beginning of the current word, and then expands to the first word (*)
shift-option-the down arrow expands the text selection to the end of the current paragraph, and then press once to extend the ending of the next paragraph (*)
shift-option-up arrows extend the text selection to the beginning of the current paragraph, then press once to expand to the Zhou (*) of the next paragraph
control-space Bar Toggles between the current input source and the previous input source
option-control-space bar Toggles between all enabled input sources
Option-command-esc forced exit
(*) Note: If no text is selected, the extension starts at the insertion point position. If you select text by dragging, the extension begins at the edge of the selection. Selecting the selection in reverse will deselect the appropriate section.

Universal Auxiliary-VoiceOver Keyboard command
See this article for information about the VoiceOver combination key differences in Mac OSXv10.6.
Key combination function
Command-f5 or turn VoiceOver on or off
FN COMMAND-F5
Control option-f8 or Open VoiceOver utility
FN Control Option-f8
Control Option-f7 or display the VoiceOver menu
FN Control Option-f7
control option-; Enable/disable VoiceOver control option lock
or FN Control option-;
Option-command-8 or turn on zoom function
FN COMMAND-F11
option-command-+ magnification
Option-command--(minus) Zoom out
Option-control-command-8 Invert/restore screen color
Control option-command-, reducing contrast
Control option-command-. Enhanced contrast Ratio
Note: You may need to enable the F1, F2, and other keys as standard function keys in keyboard preferences for the VoiceOver menus and utilities to work correctly.

Universal Assist-mouse button
When you turn on the mouse button in universal accessibility preferences, you can move the mouse pointer using the keys on the keyboard or the numeric keypad. If your computer does not have a numeric keypad, use the Fn (function) key.
Key combination function
8 Move Up
2 Move Down
4 Shift Left
6 Move Right
1 move diagonally to the left lower corner
3 move diagonally to the lower-right corner
7 move diagonally to the top-left corner
9 move diagonally to the upper-right corner
5 Press the mouse button
0 hold down the mouse button
. (A period on the numeric keypad) release the pressed mouse button

Mac OS Terminal several shortcut keys

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.