明朗双滚轴自动好神拖:Mac OS Top 50 Terminal commands/Mac常用50个终端指令(1/2)

Referenced from: http://www.mactricksandtips.com/2008/02/top-50-terminal-commands.html

1) 2D Dock

This quite a popular hack for the people running Leopard and don’t like the 3D feel. It changes the 3D dock to a flat 2D version. To enter copy and past the following code./如果你不喜欢3D的dock,你可以设置成2D平面的dock。

defaults write com.apple.dock no-glass -boolean YES
killall Dock

2) Gradient Behind A Stack Item

One of my favourite hacks that enables you to put a small gradient behind an icon. I think this should be enabled by default.

defaults write com.apple.dock mouse-over-hilte-stack -boolean YES
killall Dock

3) Add A Message To The Login Window/在登录窗口添加显示信息

This little Terminal command enables you to add a message of your choice to the Login window. Pretty cool and deserved a screenshot if I new how to take on while not logged in. Warning it’s a sudo command which can be dangerous./用下边的命令,替换掉双引号中的”Your Message“为你想显示的消息,注意不要过长。

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Your Message"

Replace “Your Message” with the message of your choice, don’t make it to long. If you want to revert it do the following./如果你相恢复到以前不显示的样子,用下边的命令。

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText ""

4) Add An Exposè Button To The Desktop/在桌面添加一个Expose按钮

If you have reconfigured the F9 and F10 keys to something different you may want to use exposè. This hack adds a bigish blue button onto the desktop to enable you to use exposè. Clicking on it shows all the windows from one application (F10 default), option clicking it shows all windows (F9 default).

defaults write com.apple.dock wvous-floater -bool YES
killall Dock

5) Address Book Debug Menu/在通讯录中添加Debug菜单

If you have some trouble with Address Book it may be useful to open up the debug menu as well as this use some of the hidden features. Make sure address book is closed first before applying the code. If you want to revert it remove YES in the string.

defaults write com.apple.addressbook ABShowDebugMenu -bool YES

6) Increase Dock Magnification Size/调整Dock放大率

This little hack lets you increase the size of the magnification of the dock icons. Don’t go past 512./注意设定值不要超过512。

defaults write com.apple.dock largesize -int 512

7) Increase Desktop Icon Size/调整桌面图标大小

If you want massive icons on you desktop this little hack lets you increase the icons to 512 pixels x 512 pixels. This is massive, may slow down on older machines. I don’t think it goes larger than 512./注意不要超过512。

defaults write com.apple.finder DesktopViewOptions -dict IconSize -integer 512
killall Finder

8) Changing the Format Of Screen Shots/改变屏幕截图保存的文件格式

If you use the screen shot function, you may want to change the format of the images, this is not easily done normally. Where jpg is in the code you can change this to the format your want, png bmp gif etc. You need to log out and back in again, or restart for the changes to take effect./Mac默认的时.png文件,你也可以改成jpg等图片格式。

defaults write com.apple.screencapture type jpg

9) Change The Login Picture/改变登录图片

If you get a bored of the space picture used on the login screen, you can change it with this little bit of code. Change the file location in the second half of the string to the exact file location of your chosen picture.

defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/System/Library/CoreServices/Finder.app/Contents/Resources/vortex.png"

10) Change The Loading Bar In Safari To A Pie Chart/将Safari中读取条改成圆形计时

This is a Safari 3 hack, so it might not work. This changes the blue bar that goes across the address bar into a small blue pie chart. Insert false instead of true to reverse.

defaults write com.apple.Safari DebugUsePieProgressIndicator -bool true

11) Clear The Open With Menu/清理右键中的文件打开程序列表

If you right click on a file you can open it with many applications. Sometimes your OS can get a little confused and list many applications. This is to clear this list and start again. The code below is all on one line./如果你右键单击一个文件,你可以用其他很多程序来打开它。有时候你的系统把这些程序列表弄错乱,你就可以清理一下它们。

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/Support/lsregister
-kill -r -domain local -domain system -domain user

12) Change The Delay When Dragging Windows In Spaces/修改拖拽窗口时的延时

This simple hack changes the delay time it takes to drag windows around in spaces, its currently set to 0.75

defaults write com.apple.dock workspaces-edge-delay -float 0.5

13) Disable Dashboard/不显示Dashboard

If you don’t want or like the dashboard running you can disable it. Change YES to NO to enable it again./替换最后的yes为no,你可以重新开启显示。

defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock

14) Enable Double Scroll Arrows/开启双滚轴箭头

This little hack enables the double arrow set for up and down, left or right, to be at both ends of the scroll bar. Handy if you like the double arrows. Use System Preferences to reset.

defaults write ”Apple Global Domain" AppleScrollBarVariant DoubleBoth

15) Disable Tooltips In Safari/取消鼠标提示

This quick little hack for Safari that removes the tooltips you get when you hover over certain elements./可以去除你鼠标放在某页面元素上跟随鼠标出现的Tooltip提示。

defaults write com.apple.Safari WebKitShowsURLsInToolTips 0

16) Increase The Dock Size/调整Dock大小

Command #6 enables you to change the magnification. This command enables you to change the size of the dock. Use the sliders in System Preferences to reduce this size. Don’t go larger 256./和6号命令并不一样,放大率是鼠标放上去后icon放大的倍率。注意这里不要超过256。

defaults write com.apple.dock tilesize -int 256

17) Disable the Crash Dialog Box/取消程序报错的对话框

This disables the quit dialog box when an application crashes. Type prompt to enable again.

defaults write com.apple.CrashReporter DialogType none

18)Drag A Widget Onto The Desktop/拖拽一个Widget到桌面

Probably one of the coolest hacks. This command enables widgets to be placed onto the desktop. Drag a widget around and press F12 to drag it onto the desktop. Repeat the process again to drag a widget back onto the dashboard. This may need you to log off or restart for it to take effect.

defaults write com.apple.dashboard devmode YES

19) Enable Debug Menu In Safari/开启Safari的Debug菜单

Adding debug menus to programs is great as you can access a whole range of features. This one is for Safari.

defaults write com.apple.Safari IncludeDebugMenu 1

20) Enable The Path View In Finder/在Finder窗口标题显示路径


One of may favourite hacks as it lets you see the current path of the Finder window you are in. Its great if you work with a lot of windows.

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

21)Enable Time Machine On Unsupported Drives/在不支持的设备上开启Time Machine

Another favourite hack of mine, simply because it enable Time Machine to work on unsupported drives such as a NAS. Use with caution as it is unsupported.

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

22) Enable Web Inspector/开启web页面源代码监视器

This is a very detailed web inspector that enables you to find out specific information about a page. It is accessible through the debug menu but this enables you to use it without. You can quickly access it through right-click.

defaults write com.apple.Safari WebKitDeveloperExtras -bool true

23) Enable Debug in iCal/开启iCal的Debug菜单

Another debug menu (I like debug menus) this time its for iCal. You need to restart iCal for the changes to take effect.

defaults write com.apple.iCal IncludeDebugMenu YES

24) Enable Quit In Finder/开启Finder的退出功能

This is a very useful command for anyone who does a lot of fiddling and needs to quit Finder.

defaults write com.apple.finder QuitMenuItem -bool YES
killall Finder

25) Force Mail To Display In Plain Text/强制使用纯文本显示Mail

If you have problems with HTML emails or you just want emails to be displayed in plain text use the following command. You need to restart Mail for the changes to take effect. Replace with false to revert.

defaults write com.apple.mail PreferPlainText -bool TRUE

转载于:https://www.cnblogs.com/zfanswer/archive/2010/05/22/1741669.html

相关推荐

相关文章