Mac 常用控制台命令

目录

打开『任何来源』信任

bash 复制代码
sudo spctl --master-disable

重启TouchBar

bash 复制代码
sudo pkill TouchBarServer

创建大小写敏感卷

bash 复制代码
diskutil apfs addVolume "$(diskutil apfs list | grep 'APFS Container Reference' | awk '{print $4}')" APFSX workspace -role D 

此时/Volumes/workspace 目录就是所创建的大小写敏感卷

disk工具

bash 复制代码
diskutil list
diskutil unmountDisk /dev/disk2
diskutil eraseDisk JHFS+ raspberry disk2

修改S/L/E目录

bash 复制代码
sudo mount -uw /
killall Finder

挂载EFI分区

bash 复制代码
diskutil list
mkdir /Volumes/efi
sudo mount -t msdos /dev/disk0s1 /Volumes/efi

查看DNS

bash 复制代码
cat /etc/resolv.conf

查看端口

bash 复制代码
netstat -AaLlnW

netstat -anp tcp | grep -i "listen"

lsof -i -P | grep -i "listen"

lsof -i tcp:1935

lsof -i :8080

sudo lsof -iTCP -sTCP:LISTEN

Office 365修改显示语言

bash 复制代码
defaults write com.microsoft.Outlook AppleLanguages '("zh-cn")'
defaults write com.microsoft.Excel AppleLanguages '("zh-cn")'
defaults write com.microsoft.Word AppleLanguages '("zh-cn")'
defaults write com.microsoft.Powerpoint AppleLanguages '("zh-cn")'
相关推荐
加载力科技9 小时前
Mac 打开 ISO 文件完整教程:3 种方法挂载与解压,挂载失败也能提取文件
macos·命令模式·磁盘工具·mac打开iso·hdiutil·iso解压·mac技巧
Web Security Loop9 小时前
MAC安装最新Burpsuite pro详细步骤教程
web安全·macos·网络安全·安全性测试
Raspberry_Pi_官方账号10 小时前
Raspberry Pi Desktop 全面升级,现已登陆 PC 和 Mac
服务器·网络·macos·树莓派·raspberry pi·raspberrypios
king135987455010 小时前
EmbeddingGemma 2 270M 实测:Mac CPU、PDF/Word、256d 与 FTS5
macos·pdf·word
Patrick在香港19 小时前
同一份脚本,mac 正常 Windows 乱码:open() 默认编码实测(附 3.15 终局)
utf-8·windows·python·macos·跨平台·编码·标准库
DevLoom_21 小时前
Mac装NTFS for Mac,不用修改 SIP 安全设置也能正常读写NTFS硬盘
macos·macos 27·mac读写ntfs·ntfs for mac·mac应用
Laurie三省21 小时前
现场版却配上录音室版的歌词?聊聊我给开源 Mac 歌词软件写的多源打分算法
算法·macos·go
David@21 小时前
Mac中cursor怎么检查更新
macos
Lancker2 天前
没有 Mac 也能上架 iOS:GitHub Actions 全自动构建 + 签名 + TestFlight 送审实录
macos·ios·github
fei_sun3 天前
RIB、FIB、MAC 、ARP 表
服务器·网络·macos