MostFrequentCmds | Eloise's Paradise
0%

MostFrequentCmds

Mac 修改截屏存储地址

1
2
defaults write com.apple.screencapture location /具体地址。 # 执行修改写入地址
killall SystemUIServer # 使上一行生效, 执行完告重启cmd

Nginx

意义 命令
测试nginx,可以查看conf文件目录位置 nginx -t
修改nginx.conf后重新加载nginx的配置文件 nginx -s reload
``
``
``
``
``
``
``

Linux 命令

意义 命令
不显式注释行或者空行 `cat 要查看的文件
不显式注释行或者空行 `cat ../conf/bootstrap.conf
``
``
``
``
``
``
``

idea 快捷键

功能/操作 快捷键shortcut
用try-catch等包围代码块 选中代码块后: command+option+t
重构代码块 提取成变量 选中代码块后:command+option+r
git add command+opt+a
git commit command+k
git push command+shift+k
git pull

Mac OS Terminal快捷键

功能/操作 快捷键shortcut
ctrl+a 光标移到当前行首
ctrl+e 光标移到当前行尾
ctrl+l 清屏, 等于执行clear命令

Maven

命令 作用/使用场景
mvn dependency:resolve -Dclassifier=sources 当idea出现错误cannot download sources时执行该命令可以下载source, ⚠️注意:该命令必须在项目根目录下执行,否则会报错
-------------本文结束感谢您的阅读-------------