mac相关命令

  1. 显示和隐藏usr等隐藏文件文件
    terminal输入:
bash 复制代码
defaults write com.apple.Finder AppleShowAllFiles YES

defaults write com.apple.Finder AppleShowAllFiles NO
  1. .bashrc每次启动shell自动生效
    编辑vim ~/.bash_profile 文件, 加上
bash 复制代码
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

注意空格不能少, 然后 source ~/.bash_profile

相关推荐
他们都不看好你,偏偏你最不争气19 分钟前
【iOS】Runtime - Part 2 && 消息发送:缓存、查找与转发
macos·ios·objective-c·cocoa
Deepzz31 分钟前
macOS 上调教第三方鼠标的一些经验:从滚动顺滑到输入法自动切换
macos·swift·鼠标
whyfail4 小时前
Colima:把 Docker Desktop 从 Mac 上“瘦身”的那把刀
macos·docker·容器
他们都不看好你,偏偏你最不争气6 小时前
【iOS】Runtime - Part 1 && 对象与类的本质
macos·ios·objective-c·cocoa
Shacoray8 小时前
Mac 向 Windows 局域网传文件方案整理
windows·macos
mxpan1 天前
macOS 13+ 上使用 macFUSE + NTFS-3G 读写 NTFS 移动硬盘技术说明
macos·策略模式
秋雨梧桐叶落莳1 天前
iOS——QQ音乐仿写项目总结
学习·macos·ui·ios·mvc·objective-c·xcode
MXsoft6181 天前
**用自动化脚本给MAC误阻断留条后路:可审计、可回滚的准入控制方案**
运维·macos·自动化
iUNPo1 天前
WWDC26 技术解读:Apple Intelligence、Siri AI 与苹果生态的下一步
macos·ios·wwdc
小米渣的逆袭1 天前
macos上一个好用的PDF文字提取工具方案
macos·pdf