geo-will

· mac查看文件encoding

#查看编码
vi 文件路径
: set fileencoding
#更改编码
iconv -f utf-8 -t gbk
文件路径 > 新文件路径

· mac 下更新 .bash_profile 文件

#配置全局变量
1、打开terminal(终端)
2、cd ~ ( 进入当前用户的home目录)
3、open .bash_profile (打开.bash_profile文件)
4、直接更改弹出的.bash_profile文件内容
5、command + s 保存文件,然后关闭
6、在terminal(终端)中输入 source .bash_profile (使用刚才更新之后的内容)

· mac 打开/usr/local目录

Mac下/usr/local目录默认是对于Finder是隐藏,如果需要到/usr/local下去,打开Finder,然后使用command+shift+G,在弹出的目录中填写/usr/local就可以了。

· mac 显示/不显示隐藏文件

显示
defaults write com.apple.finder AppleShowAllFiles -bool true 

不显示

defaults write com.apple.finder AppleShowAllFiles -bool false 
更快捷办法:
打开个人根目录,同时选择 shift+cmmand+.  
 
持续更新...
 
 

分类:

技术点:

相关文章:

  • 2021-10-23
  • 2022-01-01
  • 2021-09-19
  • 2021-12-13
  • 2021-11-12
  • 2021-08-03
  • 2021-08-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-12-22
  • 2021-10-05
  • 2021-12-24
  • 2021-10-08
相关资源
相似解决方案