Skip to content

Bí Danh macOS

Lệnh macOS rút gọn.

Trang này giới thiệu một nhóm bí danh và các phím tắt lệnh thường dùng. Đọc trang này trước để hiểu quy ước đặt tên, đầu vào mong đợi và mẫu thực thi an toàn. Sau đó mở phụ lục tham khảo để xem toàn bộ danh sách lệnh và cú pháp chính xác. Các bí danh này giảm việc gõ lặp lại và duy trì hành vi quy trình làm việc nhất quán trên macOS, Linux và WSL.

Khi Nào Sử Dụng

Sử dụng trang này trước công việc shell hàng ngày khi bạn cần mẫu lệnh dự đoán được.

Bao Gồm

  • Bí danh: 18
  • Hàm hỗ trợ: 1
  • Tệp nguồn: 2

Ví Dụ Nhanh

  • cleanup_dsstorefind . -type f -name "*.DS_Store" -ls -delete
  • code/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code
  • desktop_hidedefaults write com.apple.finder CreateDesktop false; killall Finder
  • desktop_showdefaults write com.apple.finder CreateDesktop true; killall Finder
  • finder_hidedefaults write com.apple.finder ShowAllFiles FALSE; killall Finder
  • finder_showdefaults write com.apple.finder ShowAllFiles TRUE; killall Finder
  • iphoneopen /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
  • lockscreen/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
  • no_network_dsdefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
  • ofdopen $PWD
  • safari_safeopen -a Safari --args -safe-mode

Bước Tiếp Theo

Mở danh sách đầy đủ: