Click " Skip Ads " to view this page

Saferich.biz

OS X Daily: “Find a MAC Address in Mac OS X” plus 2 more

Link to OS X Daily

Find a MAC Address in Mac OS X

Posted: 28 Feb 2012 03:18 AM PST

MAC address

A MAC address is a unique identifier that is assigned to each physical network interface on a computer. Different than a computers IP address, MAC addresses are frequently used for network access control and to monitor network connectivity, and they can be spoofed for virtualization needs or to circumvent some network limitations. If you need to access yours, here’s how to find one from the friendly GUI and the command line.

Locate a MAC Address in Mac OS X

To quickly find a MAC address:

  • Open System Preferences from the  Apple menu
  • Click on “Network”
  • Select your currently active network connection from the left menu (Wi-Fi, Ethernet, etc) and then click on “Advanced” in the lower right corner
  • Look at the bottom of the window for “Wi-Fi Address”, the hexadecimal characters next to this are the machines MAC address

Find MAC address Mac OS X

The address is always in the form aa:bb:cc:dd:ee:ff, looking something like “ce:9e:8d:02:1d:e9″ or a variation of.

Note that the wireless MAC address will be labeled as “Wi-Fi Address” in OS X 10.7 Lion and later as well as iPhone and iOS, whereas it’s called “Airport Address” in Mac OS X 10.6 Snow Leopard and before.

List All Network Hardware MAC Addresses in Mac OS X

To quickly list all MAC addresses of network hardware on a Mac, even if they are currently inactive, launch the Terminal and type the following command:

networksetup -listallhardwareports

This may return something like this, look for the string following “Ethernet Address” to find the MAC address per interface:

Hardware Port: Bluetooth DUN
Device: Bluetooth-Modem
Ethernet Address: db:26:cd:41:c3:79

Hardware Port: Ethernet
Device: en0
Ethernet Address: 21:d3:91:bb:11:bd

Hardware Port: FireWire
Device: fw0
Ethernet Address: c6:18:ed:fa:ff:15:db:51

Hardware Port: Wi-Fi
Device: en1
Ethernet Address: f2:8b:fc:ae:bb:f5

Notice that even a wi-fi cards MAC address will be referred to as “Ethernet address” using the networksetup command. You can also retrieve individual IP addresses and MAC addresses together with the ifconfig command, although the output isn’t nearly as user friendly.

If your intention is to spoof an address, generating a random MAC address is usually the best bet to avoid any network conflicts.


10 Keyboard Shortcuts for Text Navigation & Manipulation in the Command Line

Posted: 27 Feb 2012 01:26 PM PST

Navigate text in the command line

We recently covered 12 keyboard shortcuts to help navigate around and manipulate text in Mac OS X, and now we’ll show you a handful of similar tricks for use at the command line. These shortcuts can be used just about anywhere in the Terminal, including the bash prompt.

7 Navigation Shortcuts

Navigate around blocks of texts faster with the following shortcuts:

  • Jump to Beginning of Line – Control+A
  • Jump to End of Line – Control+E
  • Go to Next Line – Control+N
  • Go to Previous Line – Control+P
  • Delete Previous Word – Control+W
  • Delete Line from Cursor to Beginning – Control+U
  • Delete Line from Cursor to End – Control+K

Of course you can also use the arrow keys to navigate within text blocks and to place the cursor for using all commands mentioned.

3 Cutting & Pasting Shortcuts for the Command Line

The command line also has it’s own version of cut and paste, called “kill” and “yank”, and you can reuse two previously mentioned commands for this purpose:

  • Cut from Cursor to Beginning of Line – Control+U
  • Cut from Cursor to End of Line – Control+K
  • Paste Previously Cut Text at Cursor – Control+Y

Because the latter two kill and yank commands do not overwrite the clipboard buffer, they can function as a secondary cut & paste command in many GUI based Mac OS X apps as well.

Enjoy this? Check out more command line tips in our archives.

Thanks to Josh who pointed out some these commands in the comments


Change Mail Apps “Mark As Read” Behavior in Mac OS X

Posted: 27 Feb 2012 11:37 AM PST

Mail apps Mark as Read behavior

Have you ever noticed that Mail app registers a message as “read” after it has been clicked? The automatic “mark as read” feature makes it easy to quickly skim through a bunch of emails, but Mail doesn’t offer much control over the the delay for when messages are marked read.

That’s where TruePreview comes in, it’s a free Mail plugin that gives you control over how Mail app handles messages and their read behavior. With TruePreview, you can set messages to mark as read after a delay, disable the automatic mark as read feature completely, or restore to default settings, it also allows for these customizations to be made on a per account basis, allowing for read behavior to change depending on email addresses.

  • Quit Mail app
  • Download TruePreview (scroll down for latest versions) and run the installer
  • Launch Mail.app and open Preferences, click on the >> arrow and select “TruePreview”
  • Adjust the Mark as Read settings as desired

TruePreview works with Mail app in Mac OS X Lion (10.7.3) and earlier. If you want to uninstall the plugin for some reason, it can be found at:

~/Library/Mail/Bundles/TruePreview.mailbundle

Deleting that folder and restarting Mail will uninstall TruePreview.

Adjusting Mail Mark As Read Behavior from the Command Line

If you’d rather not add a plugin to Mail app, you can also do some of this through the command line with defaults write commands, if you’re comfortable with that. Launch the Terminal

Set the delay to 2 seconds with the following:

defaults write com.apple.Mail MarkAsReadDelay 2

Replace the two on the end with any number to change the delay to that many seconds. You can also remove the delay with the following defaults write command:

defaults write com.apple.Mail MarkAsReadDelay 0

Return to the default setting with the following defaults delete command:

defaults delete com.apple.Mail MarkAsReadDelay

Removing the delay with these latter commands seems to only impact Conversation view, according to Macworld.


0 comments:

Post a Comment

top