rm -rf /Users/admin/.Trash/*
rm -rf /Users/Macintosh/.Trash/*
删除垃圾篓文件
rm -rf /Volumes/Macintosh\ HD/System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/IOBluetoothHostControllerUARTTransport.kext
rm -rf /Volumes/Macintosh\ HD/S/L/E/IOBluetoothFamily.kext/C/P*/IOBluetoothHostControllerUARTTransport.kext
rm -rf /Volumes/10/System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/IOBluetoothHostControllerUARTTransport.kext
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
这样在/privatearm下的swapfile?文件就可以删除了
sudo pmset -a hibernatemode 0 ,系统睡眠功能关闭
sudo pmset -a hibernatemode 3,恢复系统睡眠功能
查看隐藏文件
defaults write com.apple.finder AppleShowAllFiles YES;killall Finder
隐藏掉隐藏文件用的
defaults write com.apple.finder AppleShowAllFiles NO;killall Finder
开trim
sudo trimforce enable
AirDrop:
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 && Killall Finder
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 & Killall Finder
defaults delete com.apple.NetworkBrowser BrowseAllInterfaces & Killall Finder
开机按 键入 -v -s 进入后,键入以下命令,重建权限,每行回车
/sbin/fsck -fy
/sbin/mount -uw /
chmod -R 755 mach_kernel
chown -R root:wheel mach_kernel
chmod -R 755 /System/Library/Extensions/
chown -R root:wheel /System/Library/Extensions/
rm -rf /System/Library/Caches/*
reboot
10.11刷权限
sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /
sudo kextcache -system-prelinked-kernel
sudo kextcache -system-caches
Ctrl-⏏ 显示重启、关机、睡眠对话框
Command-Control-⏏ 重新启动
Command-Option-Ctrl-⏏ 关机
Command-Option-⏏ 睡眠
Command-Shift-Option-Q 注销
Command-Shift-⏏关闭显示器
diskutil list
diskutil info disk0s1
sudo spctl --master-disable
开启HiDPI
打开终端 键入
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
回车后,输入当前系统管理员的密码,继续回车确认。
终端
date 122014202015.30
=========================
shift+F10唤出命令行
输入:
diskpart 进入磁盘工具
list disk 列出所有磁盘
select disk XXX 选择需要操作的磁盘XXX代表磁盘号
Clean 清除磁盘上所有分区
convert gpt 转换成GPT分区
create partition efi size=220 创建EFI分区大小220MB
create partition msr size=128 创建MSR分区大小128MB
=============WEB?=================
sudo spctl --master-disable
sudo nvram nvda_drv=1
sudo nvram -p