Difference between revisions of "MacOS/Cheatsheet"

From braindump
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:


airport -h # check the options
airport -h # check the options
== Command Line ==
Find the Mac OS X version on the command line.
sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.8
BuildVersion: 10K549

For Scripting also with arguments
sw_vers -productVersion
10.6.8

== References ==
== References ==
* http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X
* http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X
* http://xahlee.org/UnixResource_dir/macosx.html
* http://xahlee.org/UnixResource_dir/macosx.html
* http://blog.irrashai.com/blog/2009/10/wifi-apps-for-mac-os-x-snow-leopard/
[[Category: MacOS]]
[[Category: MacOS]]

Latest revision as of 16:32, 28 June 2015

Screenshots

Save to Desktop

Take a screenshot of the screen, and save it as a file on the desktop

Command-Shift-3 

Take a screenshot of an area and save it as a file on the desktop

Command-Shift-4 & select area

Take a screenshot of a window and save it as a file on the desktop

Command-Shift-4 & then space & click on window

Save to Clipboard

Take a screenshot of the screen, and save it to the clipboard

Command-Control-Shift-3 

Take a screenshot of an area and save it to the clipboard

Command-Control-Shift-4 & select area

Take a screenshot of a window and save it to the clipboard

Command-Control-Shift-4 & space & click on window

In Leopard and later, the following keys can be held down while selecting an area (via Command-Shift-4 or Command-Control-Shift-4): To lock the size of the selected region and instead move it when the mouse moves press

Space 

To resize only one edge of the selected region press

Shift

To resize the selected region with its center as the anchor point press

Option

WLAN

There is an airport command line utility hidden far far away in some distant directory. Creating a symlink to /usr/sbin will make it handy for debugging WLAN issues.

ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
airport -h # check the options

Command Line

Find the Mac OS X version on the command line.

sw_vers     
ProductName:	Mac OS X
ProductVersion:	10.6.8
BuildVersion:	10K549

For Scripting also with arguments

sw_vers -productVersion
10.6.8

References