terminal

Search terminal

How to Check SHA1 Hash of a String

Jun 6, 2012 - 3 Comments
Check SHA1 Hash of a String

Do you need to check the sha1 hash of a string? You can easily find the sha1 hash of any string from the command line, and this trick works to check sha1 hash from Mac OS or Linux. We’ll use the openssl command to

Create SSH Bookmarks in Terminal for Quick Remote Server Access in Mac OS X

Jun 3, 2012 - 5 Comments
SSH Bookmarks in Terminal

Setting up SSH bookmarks within Terminal app is an easy way to quickly connect to remote machines. If you haven’t noticed these in Terminal before it’s probably because they aren’t labeled as bookmarks, and therefore the feature gets frequently overlooked by even the most advanced Mac users. Here’s how to create bookmarks within Terminal, and … Read More

Create & Extract bz2 Archives in Mac OS X

May 29, 2012 - 10 Comments
bzip2 archive in Mac OS X

The Bzip archive format is generally more effective at compressing than zip and gzip, and while the default Archive Utility or the excellent all-purpose Unarchiver tool will handle unarchiving bzip2 files with ease, you will have to venture to the command line if you want to create a bzip archive in Mac OS X. Creating … Read More

How to Set Up a Password-less SSH Login

May 25, 2012 - 29 Comments
Set up password-less SSH logins

Setting up passwordless SSH logins is a great way to speed up connections to regularly accessed remote Macs and unix boxes. Because not all versions of Mac OS X include the ssh-copy-id command, you may have to use cat or scp to copy over your ssh key. This is how to set everything up, it … Read More

Install wget in Mac OS X Without Homebrew or MacPorts

May 22, 2012 - 89 Comments
Install wget in Mac OS X

Want to have wget on Mac without Homebrew or MacPorts for whatever reason? You can do that by building wget from source at the command line. The command line tool wget lets you retrieve a group of files from FTP and HTTP protocols, it’s a very useful utility for web developers and powerusers to have … Read More

Turn a Python, Perl, Ruby, or Shell Script Into a Self Contained Application for Mac OS X

May 22, 2012 - 3 Comments
Script turned into a self contained Mac OS X app

Platypus is an excellent utility that lets you turn virtually any script into a self-contained Mac OS X application. Free and remarkably simple to use, Platypus will support just about any shell script, Perl, Python, PHP, Ruby, Tcl, AppleScript, Expect, and even other scripting languages.

Consultant’s Canary is the Ultimate Troubleshooting Aid for Mac OS X

May 21, 2012 - 5 Comments
Consultants Canary for Mac OS X

Troubleshooting computer problems is never particularly fun, and with so many potential third party add-ons, plugins, extensions, scripts, and whatever else is buried into OS X, how are you supposed to find everything to help determine what’s causing an issue? You need Consultant’s Canary, because whether you’re troubleshooting your own Mac or someone else’s, it’s … Read More

Use Growl Notifications to Alert When Command Line Tasks Have Completed

May 17, 2012 - 4 Comments
Growl Notification sent from the command line with growlnotify

A recent tip covered how to announce when a command line task finished by using OS X’s text-to-speech abilities. The obvious downside to that method is the sound makes it less useful to those who are using Macs in quiet environments like offices, schools, or libraries. An alternate solution is to use growlnotify to create … Read More

Make Mac OS X Speak (or Sing) the Output of Any Command Line Task

May 11, 2012 - 2 Comments
Speak the output of a command line task

Along the lines of vocally announcing task completion within the command line, you can also have Mac OS X speak the output of any executed command.

Announce When a Command Line Task is Completed in Mac OS X

May 8, 2012 - 15 Comments
Announce the completion of a command in Mac OS X Terminal

By appending the say command to the end of another command, Mac OS X will vocally announce when the initial task has finished running successfully. For example, to have OS X announce that a particular script has finished running the command could be: python backup.py && say “jobs done” The important part is the “&& … Read More

Empty Contents of Specified File Without Deleting via Command Line

May 7, 2012 - 3 Comments
Remove Contents from a specified file without deleting the file

If you’re working at the command line and need to quickly empty the contents of a file, you can do so by throwing a greater than symbol and a space in front of the filename in question.

Generate and Set a Random Valid MAC Address from the Command Line in OS X

May 2, 2012 - 5 Comments
Generate and set random MAC address in OS X

We’ve shown you how to generate MAC addresses randomly and then how to go about changing a MAC address in OS X Lion and OS X Mountain Lion, but why have those be two separate actions? Using the command line, you can combine the two events into a single action to generate a valid MAC … Read More

Open Terminal Faster by Specifying a Shell

Apr 30, 2012 - 2 Comments
Specify a shell within Terminal to speed up opening new Terminal windows

Whenever a new Terminal window is launched, a variety of system logs are read to provide information on the last login. One way to speed up launching a new terminal window is to delete those .asl log files, but you can achieve a substantial speed boost by simply setting Terminal to open a shell rather … Read More

Free Up Inactive Memory in Mac OS X with Purge Command

Apr 24, 2012 - 69 Comments
Free Up Memory in Mac OS X

Mac OS X has fairly good memory management but it’s not perfect, and sometimes RAM can be held unnecessarily in the “inactive” state despite the contents no longer being needed. If you’ve been participating in memory heavy activities or you just need to free up some available RAM you can actually force Mac OS X … Read More

Change Length of Bash Command History or Disable Bash History Completely

Apr 12, 2012 - 6 Comments
Bash History

A users .bash_history file keeps a running tab of command line history, logging every command that has been entered into the bash prompt. These command history files make it very easy to find and recall past commands that may have been forgotten, and they’re also extremely useful for system administration. We will cover how to … Read More

How to Create a Tar GZip File from the Command Line

Apr 5, 2012 - 16 Comments
How to Create a Tar GZip Archive Bundle

You’re probably familiar with making your own zip files if you’ve ever needed to transfer a group of files or if you’re managing your own backups outside of Time Machine. Using the GUI zip tools are easy and user friendly, but if you want some more advanced options with better compression you can turn to … Read More

Lock the Mac Desktop from the Command Line

Mar 30, 2012 - 10 Comments
Lock the Mac OS X Screen from the Command Line

With the help of a buried menu item, we can lock the Mac OS X screen right from the Terminal. This does not log a user out, it just brings up the standard Mac OS X lock screen and login window, requiring a valid user and password before the Mac can be used again. This … Read More

Quickly Get a Router IP Address from the Command Line

Mar 23, 2012 - 8 Comments
Router IP Address

If you need to quickly retrieve the IP address of the router you are connected to or through, you can find this information immediately in the Terminal of Mac OS X.

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