Follow System & Kernel Logs from Command Line in Mac OS X

Apr 20, 2011 - 1 Comment
Mac OS X Console Logs from Command Line

If you’re troubleshooting some of the more difficult problems that you can have on a Mac, a good place to look are the System & Kernel Logs contained within Console app. But you can access the same OS X logs from the Terminal too.

Connect to a Wireless Network from the Command Line

Apr 12, 2011 - 14 Comments

Using the powerful ‘networksetup’ utility, we can connect to wireless networks directly from the command line of Mac OS X. The syntax you’ll want to use to accomplish joining a network is as follows: networksetup -setairportnetwork [interface] [router SSID] [password]

Use Aliases to Create SSH Shortcuts

Apr 11, 2011 - 12 Comments

More fun with SSH! We showed you how to setup SSH config files and use tab completion for SSH aliases, but setting up bash aliases is even easier if you are connecting to the same server over and over again. Here’s what you’ll need to do: nano ~/.bash_profile On a new line, enter something like … Read More

Quickly Copy HTML & CSS Source to the Clipboard with curl

Apr 9, 2011 - 4 Comments

Using curl and pbcopy, we can quickly grab and copy HTML and CSS code from any URL via the command line. This should be a helpful tip for the web developers out there, but for anyone looking to check the source of a web page through this can be an invaluable little trick.

Enable Tab Completion for SSH Aliases

Apr 6, 2011 - 17 Comments

Yesterday we showed you how to setup a basic SSH Config file, and here’s how to make that even more useful: enable tab completion for those SSH aliases. Throw this into ~/.bash_profile or ~/.bashrc # Add Tab-completion for SSH host aliases complete -o default -o nospace -W "$(/usr/bin/env ruby -ne ‘puts $_.split(/[,s]+/)[1..-1].reject{|host| host.match(/*|?/)} if $_.match(/^s*Hosts+/);’ … Read More

Setup an SSH Config File

Apr 5, 2011 - 8 Comments

If you use SSH even somewhat often, it would benefit you to setup a basic SSH config file. If you’re curious why, would you rather type something like this: ssh -p 6851 user@servername.domain.com Or just type: ssh name I know what I’d rather do, so let’s get this working. I’m going to use nano editor … Read More

Quickly Backup a Site Through FTP with wget

Apr 4, 2011 - 4 Comments

If you want to quickly backup an entire website through FTP, the absolute easiest way to do this is through the command line using the wget command. In fact, you can backup an entire site (or whatever else is on the entire FTP server) with a single command string.

Boot into Mac OS X Verbose Mode

Mar 31, 2011 - 3 Comments

Booting a Mac with Verbose Mode can be a helpful troubleshooting trick for some obscure situations where users are trying to determine what is going wrong with a Mac during the system boot process. Just as it sounds, verbose mode is verbose, meaning it lists everything going on behind the scenes, and you’ll watch as … Read More

Remove an Agent from launchd

Mar 8, 2011 - 31 Comments

The vast majority of Mac users won’t need to manually tweak launchd and launchctl, but there are times when you uninstall or stop using an app in Mac OS X and a service agent continues to needlessly load in launchd. This is annoying, but these rogue agents are easy to remove via the command line, … Read More

Change & Set the Default crontab Editor

Mar 7, 2011 - 14 Comments

Most hardcore command line users and unix geeks love vi, but I prefer nano. If you want to change your default crontab editor to nano, here’s how to do this: For a one time edit, launch the terminal and type: EDITOR=nano crontab -e If you want to set nano as your default editor in general, … Read More

3 Ways to Get Gmail Notifications on Mac OS X Desktop

Feb 19, 2011 - 12 Comments

With all the new tools like Twitter for Mac, it’s easy to forget that email is still a dominant form of communication online. I use Gmail constantly and I like to be alerted to new messages coming in without having a dedicated window open at all times, so with this in mind here are three … Read More

Print and Query Command History to Find Specific Past Commands

Feb 6, 2011 - 7 Comments

If you’re trying to remember an exact command you executed via the Terminal but can’t quite come up with it, you can query your command line history to discover old commands by using the following syntax: history |grep “search string” This will look for “search string” in your command history and only print back instances … Read More

Subscribe to OSXDaily

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