terminal

Search terminal

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.

Change the Shell in Mac OS X Terminal

Mar 21, 2012 - 12 Comments
Change Shell in Terminal

Tired of bash? Prefer zsh, ksh, tcsh, fish, or sh? You can quickly change the default shell in Terminal app, in addition to changing a users default login shell for when logging in remotely with SSH or otherwise. Here’s how to do both.

Create ISO Images from the Command Line

Mar 16, 2012 - 3 Comments
ISO

You can create ISO images from any source disk or data by using the command line in Mac OS X. This isn’t too different than burning them through Terminal, and you can use either the hdiutil tool or dd command. While the command line is generally reserved for advanced users, using it to create ISO’s … Read More

How to Remotely Sleep a Mac from Anywhere with SSH or an iPhone

Mar 14, 2012 - 25 Comments
Remotely Sleep a Mac

Ever been away from your Mac and wished you could put it to sleep remotely? Maybe you accidentally left a Mac on at home or at work, or maybe you just left a Mac running so a download could complete. You don’t have to leave it running while you’re gone though, here are two different … Read More

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