The Mac Observer

Skip navigational links

You're viewing an article in TMO's historic archive vault. Here, we've preserved the comments and how the site looked along with the article. Use this link to view the article on our current site:
Command Line Tricks in Mac OS X

Command Line Tricks in Mac OS X

by , 3:40 PM EDT, July 16th, 2007

The world of the Unix command line is rich and complex. Even experienced users are always finding new features and tricks. Drew McCormack at MacResearch.org found some and posted them on Monday.

"It never ceases to amaze me how much I still have to learn about the innards of Mac OS X," Mr. McCormack wrote. "It seems like I am always coming across new tools that I never knew existed, many of which have been in the system for many years. So I thought I would share a few of the command-line tools and tricks that have surprised me at some point, in the hope that some of you may also have a moment of enlightenment."

In summary, the command line functions are:

  1. Sips. Image data can be manipulated and file types converted on the command line.
  2. Textutil. Like sips, textutil can be used to convert between various types of documents.
  3. Mdfind. Spotlight can actually be used on the command line and is actually more powerful.
  4. Plutil. Convert Apple's binary property lists back to human readable text.
  5. Pbcopy and Pbpaste. One can actually copy and paste from the command line.

TMO notes that while the functionality of all these commands exist in simple GUI utilities, they can come in very handy when one is writing, say, a Perl or Python script, and the coder wants to introduce some high level, convenient behavior into the software.

More details are at MacResearch.org.

  

Observer Comments

Show: Subjects Only | Full Comments
Comment on this Article

Comments are currently closed. Please email the author instead.


Recent Headlines - Updated February 12th

Sat, 4:11 PM
MacOS KenDensed - MacOS KenDensed: iPad 3 Frenzy, Big-time Apple & Steve Jobs, G-Man
Fri, 8:10 PM
News - Apple Sues Motorola Mobility in California Over German Case
7:54 PM
Free on iTunes - OnLive Desktop: Windows & Office on Your iPad
7:43 PM
Product News - Apple Rolls Out MacBook Air Configurations for Education
6:35 PM
Just a Peek - Battle Pocket Bulge With The Hint for iPhone
6:01 PM
Rumor - Apple Reportedly Bringing MacBook Air Styling to Pro Line
4:50 PM
Particle Debris - The Hidden Gotchas of Browser Security
3:56 PM
Apple Stock Watch - Analyst: Paying a Dividend Makes Sense for Apple
2:58 PM
Deal Brothers - iMac 27-inch 2.93GHz Intel Quad-Core i7 processor:  $1,999
2:45 PM
In-Depth Review - Theodolite App for iOS is Breathtaking
12:52 PM
Apple Stock Watch - Mizuho Securities Starts Apple Coverage with $635 Target
11:35 AM
Hot Forum Topic - Forum Poll: Are You Planning on Buying a New iPad?

The Mac Observer Reader Specials

  • TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct from Strider Software.
  • Mac RAM Upgrades: MacBook Pro 16GB kits $475, 8GB Kits for $119.99! iMac 16GB RAM Kits (4x 4GB) for $229.99! Mac Pro Memory 32GB Kit for $399.99, 64GB Kit for $889.99! Mac Hard Drives 2TB Seagate SATA II for $249.99! Click Here!
  • Poker Mac If you're using a Mac, then you've gotta check out Online Poker Mac. This mac poker and online casino mac site actually does the unthinkable, it actually rewards!
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!