terminal key shortcuts:
- Ctrl + a – go to the start of the command line
- Ctrl + e – go to the end of the command line
- Ctrl + k – delete from cursor to the end of the command line
- Ctrl + u – delete from cursor to the start of the command line
- Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
- Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
terminal operations:
1. open google chrome from terminal
If you just want to open the Google Chrome from terminal instantly for once then open -a "Google Chrome" works fine from Mac Terminal.
If you want to use an alias to call Chrome from terminal then you need to edit the bash profile and add an alias on ~/.bash_profile or ~/.zshrc file.The steps are below :
- Edit
~/.bash_profileor~/.zshrcfile and add the following linealias chrome="open -a 'Google Chrome'" - Save and close the file.
- Logout and relaunch Terminal or source ~/.bash_profile
- Type
chrome filenamefor opening a local file. - Type
chrome urlfor opening url.
2. Atom open file from terminal
$ Atom .bash_profile
Atom shortcuts
vim keyshort see Vim Cheat Sheet here, note cursor movement is not in insert mode.
references:
1. https://stackoverflow.com/questions/34796888/how-to-open-google-chrome-from-terminal
2. https://skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/
本文介绍了终端中常用的快捷键,如Ctrl+a、Ctrl+e等,用于快速导航和编辑命令行输入。此外,还详细讲解了如何从终端打开Google Chrome浏览器及Atom编辑器的方法,包括设置别名和使用快捷命令。
5995

被折叠的 条评论
为什么被折叠?



