Command Line

The command line interface is an alternate method of interacting with macOS and Mac OS X, relying on text based command entry to execute commands and perform tasks. It is accessed on the Mac by using the Terminal application. Generally, the command line is considered advanced, and thus it’s usage tends to be more complex than many standard procedures on a Mac.

Search Command Line

Monitoring CPU Usage on Mac from Terminal with a better top command

Oct 6, 2009 - 11 Comments
a better top command

Following the CPU usage on my Mac is a mild obsession, and I usually use the Mac terminal command ‘top’ to do this but I noticed that top itself takes up a fair amount of CPU usage (5% or more). I made this complaint to a friend of mine and they told me to try … Read More

Enable hidden Quick Look feature for folder content previews

Oct 4, 2009 - 3 Comments

You can see a visual preview of a folders contents by enabling a hidden Quick Look feature. This is a rather nice eye candy improvement but I’m not sure that it’s use goes much further beyond that, see the above screenshot and try it out yourself to judge. To enable the Quick Look X-Ray folders, … 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 if your Mac is 64 bit Compatible via Command Line

Sep 23, 2009 - 5 Comments

While geeking around I discovered another way to check if your Mac is 64 bit compatible by using the command line. Launch terminal and type “sysctl hw |grep 64bit” Here’s me using the command on my MacBook which does not have a 64 bit processor: $ sysctl hw |grep 64bit hw.cpu64bit_capable: 0 on my friends … 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

Use a Quick and Dirty Stopwatch via the Mac Terminal

Sep 12, 2009 - 2 Comments
terminal

Need a super easy and simple Stopwatch on the Mac, but don’t want to download anything like a third party app or utility? Look no further than the command line. You can create an instant quick and dirty stopwatch via the Mac OS X (or linux) command line by launching the Terminal app and typing … Read More

How to Convert a DMG to ISO on Mac, & Convert ISO to DMG on Mac

Sep 9, 2009 - 20 Comments

Have you ever needed to convert a DMG file to ISO in Mac OS, or wanted to convert an ISO file to DMG on your Mac? Converting image files on your Mac is easy thanks to a command line utility included in Mac OS X called hdiutil.

How to Tell if Mac is Running a 32-bit or 64-bit Kernel in Mac OS X

Sep 7, 2009 - 20 Comments

Ever wanted to know if your Mac is using a 32-bit or 64-bit kernel? It may seem geeky and in the weeds, but it’s now relevant. Snow Leopard 10.6 is the first Mac OS X version to ship with a 64 bit kernel, and obviously your Mac has to have a 64 bit processor to … Read More

Mount a partition or volume on command

Aug 25, 2009 - Leave a Comment

I have an external drive partitioned in various ways, one of the partitions is formatted to FAT32 and I don’t need access to all the time. So how do I keep that from showing up needlessly when I plug the drive in? Using the command line to create an /etc/fstab entry and a bash script, … Read More

Hide any File or Folder by Making it Invisible to the Mac OS X Finder with setfile

Aug 11, 2009 - 18 Comments

If you ever want to hide a file or folder, you can quickly make it invisible with a command line utility called setfile. This is a really cool tip that should be particularly useful to those who share their mac with other people.

Virtually Scale Window Size to Increase or Decrease Desktop Screen Workspace

Aug 8, 2009 - 5 Comments

This is a particularly handy trick for when you have limited screen real estate and want to fit more of a windows display on screen. A perfect example of this are the Hackintosh owners out there that are working with small netbook screen resolutions and some windows just don’t display properly, or won’t even fit … Read More

Get All DHCP Info with ipconfig Quickly

Aug 6, 2009 - 3 Comments

If you’ve ever needed to troubleshoot a network or internet connection, you know how frustrating it can be (particularly when you’re on techsupport with various broadband providers). This quick tip can make the job a little easier on yourself by retrieving all relevant DHCP information, like DHCP server IP, client, subnet mask, router, DNS servers, … Read More

How to Create an IP Alias in Mac OS X using ifconfig

Aug 5, 2009 - 8 Comments

In some trickier network situations, your computer may be assigned an IP but need an entirely different IP address to access certain network resources. You might be wondering, how on earth do you have two IP addresses at once on the same Mac? The answer; Create an IP Alias! Using an IP alias allows your … Read More

Require a Password on Waking from Sleep, but Not When Screensaver is Active

Apr 26, 2009 - 9 Comments
Screen saver with no password

Have you ever wanted to have your Mac require a password on waking from system sleep, but not ask for a password when the screensaver is on or the screen was locked? Well, me neither, but someone out there might and it’s kind of a nifty customization tip that has some valid uses in some … 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