Command Line

Search Command Line

Watch Star Wars Episode IV: A New Hope in ASCII via Telnet

Dec 18, 2009 - 7 Comments

ASCII art is just one of those wonderful retro throwbacks to the earliest days of computing. So, if you’re looking for a nostalgic return to the the days of BBS, MUD, and IRC, and perhaps a little bored at school or work, why not watch the entirety of Star Wars Episode IV: A New Hope … Read More

How to Schedule Sleep and Wake Events from Terminal in Mac OS X

Dec 18, 2009 - 6 Comments
Mac Terminal icon

Like many of us, I’m often busy and out of the home, leaving my Mac on a desk. I regularly use my home machine as a local fileserver though and other people in the household are dependent on it being up and running. Now here’s the situation I’m presented with: I leave town earlier than … Read More

Opening Finder Windows from the Terminal

Dec 15, 2009 - 8 Comments

Finder, the Mac OS X file system browser, is ultimately just a nice looking GUI application, and it can be interacted with fluidly from the command line. This means you can jump to directories and open literally any Mac Finder window directly from the terminal by using a simple command string based upon the ‘open’ … Read More

What is My IP Address? How Do I Get My External IP Address in Mac OS X?

Dec 8, 2009 - 13 Comments

One of the quickest ways to get your external IP address in Mac OS X or unix is by launching the Terminal and typing one of the following commands with curl. To be perfectly clear here, we’re looking for the external public IP address of the hardware in use, this is what broadcasts to the … Read More

List All Mounted Drives and their Partitions from the Terminal

Dec 1, 2009 - 7 Comments

To list all mounted drives and their accompanying partitions from the Terminal on Mac OS X, you can use the diskutil command with the list flag. This approach will display all disks, drives, volumes, and containers on any drive connected to the Mac, including boot volumes, hidden volumes (like the Recovery partition), empty volumes, unformatted … Read More

Open Current Folder in Finder from Terminal of Mac OS X

Nov 30, 2009 - 14 Comments

Want to open a Finder window from the current directory location in Terminal? Mac OS makes this easy! From the Mac Terminal, you can immediately open whatever folder or directory you are working within into the Finder of MacOS and Mac OS X by simply typing the a short command string and executing it. To … Read More

Schedule a Mac to Startup via Command Line with pmset

Nov 28, 2009 - 5 Comments
Terminal in macOS

Most Mac users who want to schedule a Mac to startup at a specific time will use the Energy Saver schedule tool in System Preferences, but for the more technically savvy, another option is to schedule the boot time of a Mac through the command line. We’ll show you how to use the pmset command … Read More

Copy a File or Folder Path to the Terminal by Dragging and Dropping

Nov 23, 2009 - 2 Comments
Terminal in Mac OS X

Did you know you can quickly copy a files path to the Terminal just by dragging and dropping the folder or file into the Terminal window? Try it out, open any terminal window then take something from the Finder and drop it into that Terminal, it’ll instantly print out the full path to the file, … Read More

Set a Local Domain to Ease Local Development

Oct 28, 2009 - 8 Comments
Terminal in macOS

If you’re a web developer you probably do a fair amount of development on your local machine using either the built-in Mac OS X Apache server or, in my case, something like MAMP. Because a local web server like this is really handy for testing this, you can make your local development life a bit … Read More

Play MP3’s, M4A, AAC, and Other Music Files from the Command Line

Oct 27, 2009 - 3 Comments
Terminal in macOS

Ever wanted to play music while you’re working in the command line? Maybe you want to play a podcast from the command line on Mac? With the command line tool ‘afplay’ you can do just that, you can play practically any audio file format, whether it’s M4A, AAC, MP3, WAV, AIFF, or whatever else is … Read More

What is MD5?

Oct 15, 2009 - 1 Comment
Terminal in macOS

Ever heard of MD5 and not sure what it was or what that meant? You’re likely not alone, but MD5 is important, and, with a little explaining, easy to understand. Let’s explain a bit about MD5, MD5 checksums, what it is, and why you should know about it.

Check MD5 Hash on your Mac

Oct 13, 2009 - 19 Comments
Mac Terminal icon

You can easily check the MD5 Hash of any file on your Mac, all you need to do is launch the Terminal and type the ‘md5’ command and point it at the file you wish to check the md5 has for. How to Check MD5 Hash of a File on Mac First launch the Terminal … Read More

List all Open Internet Connections on a Mac from Terminal to Track Down Bandwidth Issues

Sep 29, 2009 - 5 Comments
Network Utility in Mac OS

Recently the LAN at my office had been running slower than usual, and I couldn’t pinpoint what was using up all the extra bandwidth. I had a suspicion that P2P traffic was to blame but I just couldn’t see anything obvious on the offending machine. So the question of course, is how do you see … Read More

Convert a Nero Image File to ISO

Sep 25, 2009 - 8 Comments

Someone recently sent me a Nero Image File and I had no idea what to do with it, but after some looking around I discovered you can easily convert a Nero image File to ISO format. Apparently the only difference between a Nero Image File and a typical ISO is that Nero adds a 300k … Read More

What Shell Am I Using? Here’s How To Find Out

Sep 25, 2009 - 5 Comments

Ever wondered what shell you are using at the command line? It’s not unusual to want or need to know which shell is running, and though you may hear this question many times, the answer could be different for every user, thus the easiest thing to do is to issue a terminal command which determines … Read More

Access and Mount an SMB Share via Command Line

Sep 24, 2009 - 4 Comments
Mac Terminal icon

Do you need to access and mount an SMB share from the command line on a Mac? You may be used to connecting to Windows PC from the Mac networking features to mount a Windows share on Mac, but you can also connect to Samba shares from the Terminal too. This article will show several … Read More

Check a Macs Uptime and Reboot History

Sep 22, 2009 - 19 Comments

The “uptime” of a computer is how long it has been since it was last rebooted or started up. Since Macs are very stable and generally OS X users rarely have to reboot their machines, the uptime of Macs can reach impressive numbers. You can check the uptime and reboot history of any Mac if … Read More

Disable Bonjour by Turning Off mDNSResponder

Sep 15, 2009 - 11 Comments
Terminal in macOS

Bonjour is a great service that runs in the background of your Mac to auto-discover network resources, that is, it’s great until mDNSResponder goes haywire. I was recently in a very creatively crafted network environment that made Bonjour absolutely freak out and tax my CPU with a million processes, so I opted to just disable … 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