開發(fā)過程中積累的Terminal 命令,我常忘記的一些命令
啟動WebService
- sudo apachectl start;
- sudo apachectl stop;
- sudo apachectl restart;
訪問http://127.0.0.1/~username 或 http://ip/~username
ATOM
- runner 運行快捷鍵 ctrl+R
React-Native初始化
- react-native init AwesomeProject
- cd AwesomeProject
- react-native run-ios
反編譯查看符號表
cd otool
. venv/bin/activate
otool -ov 得到屬性和變量
nm -u 得到mach-o中的符號表
otool -L 查看使用了那些庫
檢測項目中是否含有IDFA
grep -r advertisingIdentifier .
HEXO命令
- hexo clean 清理
- hexo g 編譯
- hexo s 起本地服務
- hexo d 部署到GitHub
顯示隱藏文件
defaults write com.apple.finder AppleShowAllFiles -bool true