mac操作

329 阅读1分钟
mac快捷键
command 取代了control
复制 Command + C 
粘贴 command +V
剪切  command + X
保存 command + S
快捷搜索 command + 空格键 (找程序的快捷方式)
删除 delete  注意删除文件还是建议鼠标右键
锁定屏幕 command + control + Q
任务管理器  command + option + esc (电脑卡机 程序卡死时用)
mac屏幕手势操作
1.三手指上滑—-显示当前桌面所有卡片
2.三手指下滑—-1中反操作
3.三手指右滑(左滑)切换桌面
4.二手纸上下滑 浏览器 vscode等 上下滑动
5.单手指鼠标滑动
6.单手指点击打开某个文件
7.可以把常用程序(如 vscode 浏览器 命令窗口  sourcetree  邮件  聊天)工具放到右悬浮栏
谷歌浏览器常用快捷键
谷歌浏览器控制台 fn + f12
开启浏览器新窗口  command + T
刷新浏览器  command + R
清楚浏览器缓存 command + shift + delete
终端常见操作
显示当前目录的内容  ls
转换目录  cd  test
建立新目录 mkdir  test  新建文件 touch test.txt
删除文件 rm  test.txt        强制删除目录以及目录下所有文件  rm -r -f test
显示当前目录的路径名  pwd 
改变文件名或所在目录 mv  mv file1 file2
Finder显示隐藏文件  defaults write com.apple.finder AppleShowAllFiles -bool true killall FinderFinder标题栏显示完整路径 defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES killall Finder
解决npm全局包下载成功,但是指令无法识别的问题
1. touch  ~/.bash_profile 
2. open  ~/.bash_profile
3. export PATH=~/.npm-global/bin:$PATH   //在bash_profile文件添加设置全局环境变量
4. source ~/.bash_profile   //执行更新
5. open -e ~/.zshrc //更新为以下内容
    export PATH="./node_modules/.bin:$PATH"
    export PATH="~/.npm-global/bin:$PATH"
    source ~/.bash_profile
6. source ~/.zshrc  //执行更新