Mac Shell Terminal Edit command line shortcut key--line beginning, end of row

Source: Internet
Author: User
Tags clear screen

Ctrl + d        删除一个字符,相当于通常的Delete键(命令行若无所有字符,则相当于exit;处理多行标准输入时也表示eof)

Ctrl + h        退格删除一个字符,相当于通常的Backspace键 Ctrl + u        删除光标之前到行首的字符 Ctrl + k        删除光标之前到行尾的字符 Ctrl + c        取消当前行输入的命令,相当于Ctrl + Break Ctrl + a        光标移动到行首(Ahead of line),相当于通常的Home键 Ctrl + e        光标移动到行尾(End of line) Ctrl + f        光标向前(Forward)移动一个字符位置 Ctrl + b        光标往回(Backward)移动一个字符位置 Ctrl + l        清屏,相当于执行clear命令 Ctrl + p        调出命令历史中的前一条(Previous)命令,相当于通常的上箭头 Ctrl + n        调出命令历史中的下一条(Next)命令,相当于通常的上箭头 Ctrl + r        显示:号提示,根据用户输入查找相关历史命令(reverse-i-search)CTRL + W Deletes the last word that was deleted from the beginning of the cursor position to the start of the current word (word) Ctrl + Y other command-line Tips Tips

? Enter the command open. The current location can be opened with the finder.

In terminal's preferences, you can set its appearance and style.

To abort a wrong or crazy command, you can use the combo key control + C.

? You can edit the command before executing, just use the arrows and other letters on the keyboard.

If you do not enter any commands, you can use the ▲ and to navigate through the history commands. can also be edited and executed again.

? You can also use the history command to view historical records.

? You can use the combo key control + L to clear the screen.

Command + K Clear Screen

Command + T new label

Command +w Close the current tab

Command + S Save Terminal output

Command + D Vertically separates the current tab page

Command + Shift + D horizontally separates the current tab page

Command + SHIFT + {or} Left/right Toggle tab

Mac Shell Terminal Edit command line shortcut key--line beginning, end of row

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.