protectdream的个人博客分享 http://blog.sciencenet.cn/u/protectdream

博文

More Terminal Shortcuts

已有 1344 次阅读 2021-1-2 01:45 |个人分类:技术类|系统分类:科研笔记

While we're at it, here are a few more time saving shortcuts for positioning the cursor or editing the text around the current cursor position:

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 + U Clears the line before cursor position (or the entire line if you are at the end of the line)
Ctrl + H Alternative to using backspace
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line

These commands should work using the default OS X Terminal (Bash), however if you're using a third party Terminal like iTerm then it will likely have its own set of shortcuts for performing the above actions.




https://wap.sciencenet.cn/blog-2866696-1265313.html

上一篇:重生
下一篇:报任安书
收藏 IP: 96.237.52.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 14:15

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部