terminal

Search terminal

Change User Agent with curl to Get URL Source Code as Different OS & Browser

Jul 16, 2011 - 3 Comments

Using curl we can retrieve the HTML & CSS source code of any specified URL and even the http header info, but some sites serve completely different content or HTML to different OS and browser versions, this is done by detecting their user agent. Because of this, we can spoof the user agent of another … Read More

Get CPU Info via Command Line in Mac OS X

Jul 15, 2011 - 4 Comments
Terminal in macOS

Have you ever wondered specifically what processor was being used on a Mac, including processor type and CPU speed? It’s actually quite easy to retrieve CPU information from the command line in Mac OS X, though the commands to use to get the processor information may be unfamiliar to many. We’ll show two ways to … Read More

Get Exact Boot, Sleep, and Wake Times from the Command Line

Jul 14, 2011 - 7 Comments

Need to know exactly when your Mac was last booted, put to sleep, or woke from sleep? You can get precise information about boot and sleep times directly from the command line, which can be invaluable for anything from troubleshooting various Mac problems to scheduling scripts, or even for your own forensic purposes to determine … Read More

Watch All Open Network Connections in Mac OS X with Open_Ports

Jul 9, 2011 - 20 Comments
Show open network connections on the Mac OS X Desktop

You can watch all open network connections for both incoming and outgoing transfers using a free command line utility called open_ports.sh. Open_Ports is much more useful than using lsof to list open internet connectionsbecause it provides extensive network information in a very easy to read format, including what program or process is opening the connection, … Read More

Convert Font Family and Text Size of a Document from the Command Line

Jul 8, 2011 - Leave a Comment
Convert font and text size of a document

The powerful textutil command for Mac offers an amazing capability to convert a text documents font family and text size, transforming the document with ease and precision right from the command line of Mac OS.

Get HTTP Header Info from Web Sites Using curl

Jul 7, 2011 - 7 Comments
Terminal in macOS

The easiest way to get HTTP header information from any website is by using the command line tool curl. The syntax to retrieve a website header goes like this:

Convert a Text File to RTF, HTML, DOC, and more via Command Line

Jul 6, 2011 - 9 Comments

Do you need to convert a text file to RTF, plain text TXT, HTML, DOC, or another familiar document format? The excellent textutil command line utility can make quick work of text file conversion and manipulation on the Mac, and there is no need to download any additional software or tools as it’s built right … Read More

ViTunes is a Full Featured Command Line iTunes Player

Jul 5, 2011 - 6 Comments
ViTunes command line iTunes player

If you just want a basic command line mp3 player, you could use afplay, but if that’s not enough for you, install ViTunes. The little VIM plugin gives you full access to iTunes directly from the command line text editor VIM, but don’t be fooled into thinking it’s just a boring old music player, it … Read More

Show User Library Directory in Mac OS X 10.7 Lion & 10.8 Mountain Lion

Jul 4, 2011 - 86 Comments
Show Users Library Directory in Mac OS X Lion

Modern Mac OS releases from Mac OS X 10.7 & OS X 10.8 onward default to hiding the users Library directory, this is probably to keep people from accidentally deleting or damaging files that are necessary for OS X Lion & Mountain Lion to function properly. That is fine for novice users, but for some … Read More

Create a New Terminal Window from a Tab

Jun 11, 2011 - 2 Comments
New Terminal Window from Tab

Want to create a new Terminal window from a tab on the Mac? It can be done, but how it works may depend on what Mac OS system software version you are using and therefore what version of the Terminal app is in play. In Mac OS X, the Terminal app reacts differently than Safari … Read More

Get DNS Server IP Addresses from the Command Line in Mac OS X

Jun 3, 2011 - 6 Comments

You can quickly retrieve active DNS server IP addresses on any Mac by using the networksetup utility. This is done from the command line, so launch the Terminal app and type one of the following command strings, dependent on the version of OS X that is running on the Mac.

Enable and Disable AirPort Wireless from the Command Line in Mac OS X

May 31, 2011 - 12 Comments
AirPort Wireless icon

Sometimes the easiest fix when troubleshooting an AirPort wireless connection problem is to just turn AirPort on and off. Instead of using the menu item or System Preferences, we can enable and disable AirPort very quickly directly from the Mac OS X Terminal.

Get a Full Screen Mac OS X Terminal Now with iTerm2

May 25, 2011 - 9 Comments

Don’t want to wait for the full screen Terminal in Mac OS X Lion? Me neither, and we don’t have to thanks to iTerm2. The latest build of iTerm2 features the ability to enter into a true full screen terminal mode. Just launch iTerm2 and hit Command+Return to enter into full screen. One of our … Read More

Terminal in Mac OS X Lion Gets Full Screen Mode & Eye Candy

May 23, 2011 - 19 Comments
Mac OS X Lion Terminal

Terminal.app is getting a subtle facelift in Mac OS X Lion with a couple nice interface changes. First up is the ability to adjust blur on opaque (transparent) terminal windows, the effect is done on the fly and anything behind the transparent terminal window gets blurred. The image above shows this with a blurred terminal … Read More

TermKit is the Terminal Beautifully Reimagined, Here’s How to Install It

May 19, 2011 - 34 Comments
TermKit is a GUI Terminal

If you’re tired of the antiquated (retro?) text-only appearance of the command line and Terminal.app, check out the fascinating new TermKit project. TermKit aims to bridge aspects of the GUI with the command line, allowing this re-imagined terminal to see anything from icons to images, with progress bars and indicators that commands have executed successfully … Read More

Sort top by CPU Usage to Make it More Useful

May 13, 2011 - 4 Comments
sort top processes by CPU

The top command is a great way to get a quick overview of how your system is performing and how apps are using your resources. If you are unfamiliar with it, it’s basically a command line task manager like Activity Monitor and it shows processor usage, memory usage, disk activity, load average, and other helpful … Read More

Launch & Run Multiple Instances of Any Application in Mac OS X

May 11, 2011 - 15 Comments
Run Multiple Instances of Any Application in Mac OS X

You can run multiple instances of any application in Mac OS X with a little command line magic. Using the ‘open’ command to launch GUI apps from the Terminal, we can run a new instance of any app, even if it is already running.

Generate Random Passwords from the Command Line

May 10, 2011 - 12 Comments

Some of the most secure passwords you can use are those that are randomly generated. From the command line, you can randomize potential passwords in a multitude of ways, which can be used as secure passwords of generated characters. We’ll cover several primary methods of generating random sequences and then show you how to combine … 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