Compare Contents of Two Directories from the Command Line

Nov 8, 2012 - 8 Comments

Compare directory contents from command line

To compare and list the different contents of two directories without the extra output you get through commands like diff, you can use the comm command instead. To get started, launch Terminal and type the following command, adjusting the directory paths as appropriate:

comm -3 <(ls -1 folder1) <(ls -1 folder2)

The output listed will be the files that are different in each folder, with files unique to folder1 aligning left, and files unique to folder 2 aligning right.

For example, to compare the contents of a folder called “Pictures” and a folder named “OldPictures”, both stored in the user downloads directory, the syntax would be the following:

comm -3 <(ls -1 ~/Downloads/Pictures) <(ls -1 ~/Downloads/OldPictures)

Output may look like the following:

$ comm -3 <(ls -1 ~/Downloads/Pictures) <(ls -1 ~/Downloads/OldPictures)
Folder-1-File.PNG
Folder-2-File copy.PNG
    photo 1 copy.PNG
    photo 3.PNG

Note the indentation, which shows you which files are unique to each folder. In the above example, the file “photo 1 copy.PNG” and “photo 3.png” are aligned right, therefore they are unique to the OldPictures directory, and Folder-1-File.PNG and Folder-2-File copy.PNG are unique to the original Pictures folder.

This works great in Mac OS X, but it’s a generic unix command so you should find it usable in linux and other variants as well. If you do run into any compatibility issues, or find this command to be unnecessarily complex, try using diff to perform the same function.

Great trick found by @climagic on Twitter, @osxdaily is on there too!

By William Pearson - Command Line, Mac OS, Tips & Tricks - 8 Comments

Shoot Vertical Panorama Photos on iPhone

Nov 8, 2012 - 1 Comment

Vertical panorama on iPhone

The iPhone’s excellent panorama mode allows for easy vertical panoramic shots as well.

Shooting panorama mode in vertical orientation is perfect for taking pictures of tall trees, waterfalls, buildings, or anything else that is taller than the standard range provides.

This guide will show you how to switch Panorama mode into vertical mode, to snap images of tall objects or scenery.

Read more »

By Paul Horowitz - iPhone, Tips & Tricks - 1 Comment

Turn Any Website Into a Self-Contained Mac App with Fluid

Nov 7, 2012 - 16 Comments

A  website turned app by Fluid in Mac OS X

Fluid is a great Mac app that converts any specified web site into it’s own self-contained application, allowing you to do things like turn Gmail, Facebook, Wikipedia, Soundcloud, and Pandora, into their own dedicated app.

Other than being useful for creating apps exclusively for particular websites, Fluid is also great for those of us who are easily distracted by other things on the web, forcing the usage of only the given site.

Read more »

By Paul Horowitz - Mac OS, Tips & Tricks - 16 Comments

Share Pictures Easily with Photo Streams in iOS

Nov 7, 2012 - 7 Comments

Using Photo Streams in iOS & OS X

Photo Streams are a great addition to iOS, but thus far seem to be an underused feature. With Photo Stream, you can easily share a collection of images with a select group of people, without having to go through the usual avenues of social networks. Instead, you create an instant gallery right out of the Photos app, select people to share it with, and that’s about it. If you feel like sharing it with a broader audience, you can even get a URL which allows anyone to view the images through the web.

Read more »

By Paul Horowitz - iPad, iPhone, Mac OS, Tips & Tricks - 7 Comments

6 Great Retina Wallpapers for iPad, iPhone, and Mac

Nov 6, 2012 - 1 Comment

6 high res wallpapers for iPad, iPhone, Mac

Everyone loves a good wallpaper, so we’re bringing you another little collection of great images to use as the desktop background on your iPad, Mac, iPhone, or whatever else you’re decorating. Each image is sized at 2048×2048 to accomodate the retina iPad display, but they’ll scale down to just file on virtually any other iOS or OS X device you have, and even slightly stretched on the retina MacBook Pro’s they still look great.

Each of these pictures comes to us from @RetinaiPadWalls on Twitter, give them a follow for a stream of wallpapers, and follow OSXDaily on Twitter too while you’re at it too.

Check out the wallpaper collection below:

Read more »

By Paul Horowitz - Customize - 1 Comment

OS X 10.9 Longcat [Humor]

Nov 6, 2012 - 33 Comments

OS X 10.9 Longcat

Now that OS X 10.9 is regularly appearing in usage logs, we thought we’d take a stab at the naming convention. How about OS X Longcat?

Yup, we’re bored today and diving straight into the pool of Longcat memes, and there’s nothing better than boredom and some Pixelmator fun to create something totally stupid. Don’t worry, we’ll be back to our normal useful selves soon here.

On a more serious note, what do you think the next version of OS X will be called? There have been some pretty hilarious suggestions on our Facebook page

By Paul Horowitz - Fun, Mac OS - 33 Comments

Mac OS X 10.9 Development Under Way, Regularly Appearing in Analytics Logs

Nov 6, 2012 - 14 Comments

Mac OS X 10.9 appearing in 9to5mac  web logs

Development of the next major release of Mac OS X is well under way, with version OS X 10.9 regularly appearing in web analytics logs of OSXDaily, 9to5mac, AppleInsider, CultofMac, and several other Apple-related websites. This was first brought to light today by 9to5mac, whose graph above shows a handful of visitors from Cupertino California running a new, unreleased version of Mac OS, labeled as “Intel 10.9”. Cupertino is the location of Apple’s corporate campus.

For OSXDaily, the first appearance of OS X 10.9 came in logs from July 2012, around the launch of OS X 10.8 Mountain Lion. As the graph below demonstrates, there has been a consistent upward trend appearing in our logs as more and more (presumed) Apple engineers use and work on the internal build of OS X.

Monthly ramp up of OS X 10.9 usage on the web

There is open speculation as to what the next version of OS X will be called, and whether or not Apple will stick with the cat named theme. The number of familiar feline names is running thin, and though it’s unlikely Apple would choose an unfamiliar cat name for 10.9, a name like OS X Andean Mountain Cat or OS X Iberian Lynx could certainly surprise us all.

By Matt Chan - Mac OS, News, Rumor - 14 Comments

Start a Time Machine Backup on a Remote Mac with SSH

Nov 5, 2012 - 3 Comments

Start a remote Time Machine backup with SSH

Time Machine backups can be triggered remotely thanks to SSH (Remote Login) and the command line. This is an excellent solution to use if you left the home or office without making an important backup, though the SSH requirement does add a potential layer of complexity that may make it more appropriate for advanced users. Those who prefer the GUI might be better served starting a Time Machine backup remotely by using Remote Access from an iPhone or iPad.

Read more »

Go on a Diet & Eat Healthy with Siri

Nov 5, 2012 - 2 Comments

Siri

The next time you’re wondering how many grams of sugar are in that donut and if it’s going to cut into your allotted daily calorie intake of junk food, just pull out your iPhone or iPad and ask Siri. Thanks to Siri’s ability to tap into the wealth of knowledge at Wolfram Alpha, you can use Siri to retrieve detailed dietary information.

Read more »

By Paul Horowitz - iPad, iPhone, Tips & Tricks - 2 Comments

How to Disable the Mac Boot Chime Completely

Nov 4, 2012 - 71 Comments

Disable the Mac boot chime

If you’re a Mac owner you know that every time the Mac reboots or starts up it makes a startup chime sound. Though you can temporarily mute the chime by holding down the Mute key on any Mac keyboard, you can also choose to disable it completely by turning to the command line.

To be clear, this will turn off the boot chime sound entirely, at least until it has been reversed with another terminal command string on the same Mac. This works in all modern versions of OS X on any modern Mac.

Read more »

By William Pearson - Command Line, Mac OS, Tips & Tricks - 71 Comments

iPad Mini “Heart & Soul” Commercial is Now Airing

Nov 4, 2012 - 1 Comment

iPad Mini playing heart and soul

Apple has started to run a new iPad Mini Piano commercial. Originally debuting during the iPad Mini keynote, the TV advertisement features an iPad 10″ and a new iPad Mini playing the popular piano song “Heart and Soul” together using the app Garageband. Despite appearing at the iPad Mini event weeks ago, it didn’t hit the airwaves until this weekend. If you watch Sunday night primetime television, you’ll probably see the commercial running, as Apple often starts airing new commercials during CBS’s 60 Minutes and NFL Sunday Night Football.

The video is embedded below.

This is also the same ad that Conan O’Brien recently spoofed, adding the lyrics “spend your money” to the beat of “heart and soul”

By Paul Horowitz - iPad, News - 1 Comment

Mac Setups: Photographer’s Home Office

Nov 4, 2012 - 12 Comments

Mac photographers home office

This weeks featured Mac setup is the home office of Ronny M., a professional photographer and videographer. Hardware shown includes:

  • MacBook Air 13″ – 4GB, 128GB SSD
  • iMac 27″ – 2.7Ghz Core i5, 16GB RAM, 1 TB HDD and 128 SSD, connected to two external displays
  • Benq 17″ display on the left
  • Samsung 19″ display on the right
  • iPad 2 16GB
  • iPhone 4 16GB
  • Seagate External HDD 1TB
  • Two enormous speakers to rock out with
  • Canon MX350 Wireless Printer

The MacBook Air goes on the road for field work, the iMac stays put for Aperture and Photoshop work, and the iPad is used to show photos to his clients.

If you have an interesting Mac setup you want featured here, send us a good picture or two, a list of hardware shown, and a brief description of what the gear is used for to osxdailycom@gmail.com

By William Pearson - Mac Setups - 12 Comments

Open the Twitter App Directly from Safari in iOS 6

Nov 2, 2012 - 1 Comment

Open Twitter app directly from Safari in iOS

The next time you’re browsing the web and come across a link that points to Twitter, you can immediately jump to the Twitter app if you want to. This is a new ability included in iOS 6 onward.

To access the feature, pull down from the top of Safari when a Twitter link is opened, and you’ll see a menu item that shows if Twitter is available or not, an option to install the app if it’s not, and the “Open” button shown in the screenshot. Tapping that Open button is what immediately launches Twitter, passing the current link to the Twitter app. This is great if you’ve come across a link to a tweet and decided you want to follow the user, or just explore their timeline more through the official Twitter app.

That type of behavior works with some other apps and content as well in the newest versions of mobile Safari, including PDF’s, ebooks, and epubs.

By Paul Horowitz - iPad, iPhone, Tips & Tricks - 1 Comment

List Your 15 Most Used Terminal Commands

Nov 2, 2012 - 17 Comments

Discovering most used Terminal commands with history

The history command is a useful way to find specific commands that have been used in the past, and it can also be used to discover what your personal most used commands are with the following command string:

history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -15

The output strips any flags or parameters, providing only the root commands shown by the most commonly used. Example output may look like the following:

$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn |head -n 15
56 traceroute
35 nslookup
35 ssh
31 ls
28 curl
25 sftp
23 gcc
23 make
18 cd
18 cat
17 round
15 python
13 kill
13 clear
10 defaults

The number to the left indicates how many times the command has been used, per what is listed in bash history. Clearing bash history will obviously change those numbers, as will any adjustments to the length of commands stored in bash_history, and having it disabled completely will obviously cause the entire command to report back nothing.

If you’d rather see the most used complete commands, perhaps to make aliases or for another purpose, simplifying the command string by removing awk will accomplish that;

history | sort -rn | head

Leaving the -n flag off of ‘head’ will default to list 10 items, but any number can be applied by specifying it with -n.

These commands will work in OS X and Linux, and should work in other unix variations as well.

By William Pearson - Command Line, Mac OS, Tips & Tricks - 17 Comments

Watch Jimmy Kimmel Rip the iPad Mini [Video]

Nov 2, 2012 - 8 Comments

jimmy kimmel skit about the ipad mini something or other

Every time Apple launches a new product, a bunch of comedy surfaces around it to give us all some laughs. Now it’s late night comedian Jimmy Kimmel’s turn, and he’s jumping on the the good-humored iPad Mini bashing bandwagon in an amusing comparison of past and present Apple products. No further spoilers, but check out the video below:

If you missed the first couple of Conan skits on iPad Mini, they’re hilarious too.

By Paul Horowitz - Fun - 8 Comments

How to Jailbreak iOS 6.0.1 with Redsn0w

Nov 2, 2012 - 131 Comments

Jailbreak iOS 6.0.1 with Redsn0w

Jailbreakers will be pleased to discover that iOS 6.0.1 can already be jailbroken by using existing versions of Redsn0w. Currently, only the iPhone 4, iPod touch 4th gen, and iPhone 3GS are supported, and you’ll have to point Redsn0w at the older 6.0 IPSW, but otherwise the process is pretty much the same as any other recent tethered jailbreak. The simple walkthrough below guides you through the process, but the Redsn0w app itself also is fairly explanatory these days.

Before beginning, it’s a good idea to perform a manual backup, this lets you easily undo the jailbreak without losing anything. Use iCloud to backup manually or go the traditional route with iTunes, but don’t skip this step.

  • Update to iOS 6.0.1 if you haven’t done so yet, use OTA, iTunes, or with the 6.0.1 IPSW
  • Get the latest version of redsn0w (Mac OS X) (Windows)
  • Get a local copy of iOS 6 IPSW for your device
  • Launch Redsn0w, click “Extras”, then “Select IPSW”, and choose the iOS 6.0 IPSW file you just downloaded, then go back to the main Redsn0w screen and choose “Jailbreak”
  • Follow on screen instructions to enter DFU mode by holding the Power button for 3 seconds, then while holding Power also hold the Home button for 5 seconds, finally release Power button but hold home button for another 15 seconds, Redsn0w will notify you when DFU has been successful
  • Be sure to check auto boot in Redsn0w to automatically boot the device tethered upon restart, if you missed that step go to the primary redsn0w window and select “Extras” followed by “Just Boot” to boot tethered

When iOS reboots you should find Cydia on the home screen, signifying the jailbreak was successful. If you don’t see it or it doesn’t launch, you probably didn’t boot tethered, which is required. The whole tethering thing is the primary downside to these types of jailbreaks, as you’ll need to connect it to a computer with Redsnow each time the device reboots or runs out of battery.

If you decide to undo the jailbreak, just connect the iPhone or iPod touch to the computer and choose Restore, selecting the most recent backup stored locally or within iTunes.

By Matt Chan - iPhone, Tips & Tricks - 131 Comments

Transfer Everything from an Old Mac to a New Mac with Migration Assistant

Nov 1, 2012 - 25 Comments

Migrate data from old Mac to new Mac easily

The simplest way to move everything from an old Mac to a new Mac is to use the built-in Migration Assistant tool. Migration Assistant can be used at any time, but ideally, it will be used on first boot of the new Mac, that way when it’s finished everything on the new machine will be exactly where you left off on the old machine, except all your files, documents, and apps, will be on the new Mac. This is what I recently used to migrate from a failing old MacBook Air to a new MacBook Air (a technically used Certified Refurbished model from Apple), and it allowed me to never miss a beat. If you’ve never used it before we’ll walk through how to do this, as it’s by far the best way to basically duplicate one Mac over to another.

Read more »

By Paul Horowitz - Mac OS, Tips & Tricks - 25 Comments

iOS 6.1 Beta 1 Released to Developers

Nov 1, 2012 - 3 Comments

iOS 6.1 beta 1

Alongside the public release of the iOS 6.0.1 update, registered Apple Developers received access to the first beta of iOS 6.1. Included in the release are a variety of minor UI changes, and a new Map Kit aimed at developers to help the built-in Maps app.

iOS 6.1 beta 1 arrives as build 10B5095f, and is compatible with iPad 2, iPad 3, iPhone 5, iPhone 4S, iPhone 4, iPhone 3GS, and iPod touch 4th and 5th gen. Curiously, the early releases of iOS 6.1 beta did not include IPSW for iPad 4 or iPad mini, but those should arrive shortly. Alongside iOS 6.1 beta is also a new version of Xcode 4.6, which is required to build apps for the latest beta iOS.

If you are interested in seeing some of the minor changes thus far included in iOS 6.1 beta, check out 9to5mac’s ongoing thread on the matter.

By Matt Chan - iPad, iPhone, News - 3 Comments

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site