macOS
Darwin 是操作系统,它的前身是 BSD 操作系统,基于 Unix。
XNU 是 Darwin 的内核;它的基础是 Mach 内核及其派生物。
POSIX 是一系列操作系统接口的标准。pthread 即 POSIX thread。
Use TouchID to Authenticate sudo on macOS - Digitaino IT
显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder
电脑
电脑 | 评分 | 备注 |
---|---|---|
iMac Pro (Late 2017) Intel Xeon W-2140B @ 3.2 GHz (8 cores) | 7977 | QB 组内工作站 |
MacBook Pro (16-inch Late 2019) Intel Core i7-9750H @ 2.6 GHz (6 cores) | 5285 | 2021 发放笔记本电脑 |
iMac (27-inch Retina Mid 2020) Intel Core i7-10700K @ 3.8 GHz (8 cores) | 8130 | 2022 电脑发放标准 |
Mac mini (Late 2020) Apple M1 @ 3.2 GHz (8 cores) | 7424 | 参考 |
Apple silicon Macs
In macOS Catalina, we added the ability to build your iOS apps for the Mac with Mac Catalyst. Mac Catalyst requires building your app with the macOS SDK.
In macOS Big Sur, we are leveraging this Mac Catalyst infrastructure to enable running your existing iOS apps as-is on Apple Silicon-based Macs. It is the exact same binary. Compatible iOS apps are automatically available in the Mac App Store, but you can manage the availability of your app in App Store Connect.
If you want to take your iOS applications further on the Mac, create a Mac Catalyst version by checking that switch in Xcode. This will give you the ability to customize your app's behavior on the Mac, as well as allow you to distribute your application on all Macs, not just those running Apple Silicon.
Help
磁盘格式选择 APFS,不加密、不区分大小写(某些应用程序不支持加密和区分大小写)
Turn off mojave screenshot previews:
- From a Mac running at least macOS 10.14 Mojave, use the keyboard shortcut
Command-Shift-5
to open the new screenshot utility. - From the toolbar of icons at the bottom of the screen, select Options.
- Click once to uncheck Show Floating Thumbnail.
Apache 快速开始
打开终端,启动内置 Apache:sudo apachectl start
打开浏览器,输入 localhost
,即可看见 "It works!"。
也可以通过 127.0.0.1 访问。
文件目录:open /Library/WebServer/Documents
配置文件:/etc/apache2/httpd.conf
停止:sudo apachectl stop
Chrome
SwitchyOmega,如果遇到最新版本不能安装的,可以试试旧版本。
为色盲/色弱人群打造的插件 Colorblindly,Github 地址。
Chrome 全屏截图:Command-Option-I
开发者界面 - SHIFT-COMMAND-P
- 输入 "Capture full size screenshot"
Reading List: chrome://flags/#read-later
清理磁盘空间
遇到回收站文件无法删除:sudo rm -rfv /Users/yianzhou/.Trash/prebuilt
软件
Clipy/Clipy: Clipboard extension app for macOS.
p0deje/Maccy: Lightweight clipboard manager for macOS
DevUtils - All-in-one Toolbox for Developers
iina/iina: The modern video player for macOS.
Moom on the Mac App Store: Moom allows you to easily move and zoom windows—on one display, or to another display—using either the mouse or the keyboard.
如何在 Finder 打开终端
系统有内置服务:
可以设置快捷键:
.DS_Store
.DS_Store is a hidden file that is created by macOS Finder to store custom attributes of a folder, such as the position of icons, the size and position of windows, and other view options. It is a binary file that is not meant to be edited manually.
The .DS_Store file is created automatically by Finder when you open a folder or change its view options. It is stored in the same folder as the folder it belongs to, and it is hidden by default to prevent accidental deletion or modification.
If you see a .DS_Store file appear suddenly in your macOS Finder, it is likely because you have opened or modified a folder in Finder. This is a normal behavior of macOS, and you don't need to worry about it.
However, if you want to prevent the creation of .DS_Store files, you can disable it by running the following command in Terminal:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
This will prevent the creation of .DS_Store files on network volumes. If you want to prevent the creation of .DS_Store files on local volumes as well, you can run the following command:
defaults write com.apple.desktopservices DSDontWriteStores true
Note that disabling the creation of .DS_Store files may affect the behavior of Finder and other macOS applications, so use it with caution.