3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac の default コマンド覚え書き

Posted at

参考
http://tukaikta.blog135.fc2.com/blog-entry-209.html

defaults コマンドとは
「plist」と呼ばれるアプリやシステムの設定ファイルに、設定値を追加、変更、削除、検索するコマンドです。このコマンドを使う事で、システム環境設定や各アプリの環境設定画面では設定できない値を設定します。ファイルパスを指定したり、先頭に sudo をつけたりしなければ、このコマンドを実行すると/Library/Preferences/以下の plist ファイルが変更されます。

$ls /Library/Preferences
Audio
com.apple.HIToolbox.plist
com.apple.dockfixup.plist
com.apple.timezone.auto.plist
DirectoryService
com.apple.MCX.plist
com.apple.driver.AppleIRController.plistcom.apple.updatesetings.plist
OpenDirectory
com.apple.P2PSupervisor.plist
com.apple.iPod.plist
com.apple.windowserver.plist
SystemConfiguration
com.apple.SoftwareUpdate.plist
com.apple.iokit.AmbientLightSensor.plistcom.apple.xsanmgrd.plist
Xsan
com.apple.TimeMachine.plist
com.apple.loginwindow.plist
com.microsoft.PlayReady.plist
com.apple.BezelServices.plist
com.apple.airport.opproam.plist
com.apple.noticeboard.plist
com.oracle.java.Helper-Tool.plist
com.apple.Bluetooth.plist
com.apple.alf.plist
com.apple.security.appsandbox.plist org.cups.printers.plist
com.apple.ByteRangeLocking.plist
com.apple.apsd.launchd
com.apple.security.plist
com.apple.CoreRAIDServer.cfdb
com.apple.apsd.plist
com.apple.security.systemidentities.plist
com.apple.FindMyMac.plist
com.apple.captive.plist
com.apple.storeagent.plist

$defaults write filename:設定値の追加と変更
$defaults delete filename:設定項目の削除
$defaults read filename:設定ファイルを表示
$defaults find word:設定項目の検索

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?