Mac Command Line Tutorials and Examples

Bulk convert jpeg files to png using sips on mac

mac sips (scriptable image processing system) is a very handy tool to convert image from one format to another. This can also be used to read more

Custom terminal tab title and ssh on mac

In case you are using ssh private keys to connect to remote Linux servers on cloud, it is better to automation connection to various machines read more

How to convert text to speech on Mac using command line utility say

Mac lets you convert text to speech using command line utility “say”. It also lets to generate an audio file in various formats and voices. read more

How to join multiple pdf files on Mac

Sometimes we need to combine multiple pdf files in one pdf file. This means the combined pdf will have pages from the first files and read more

How to use qpdf to add/remove password from pdf on mac

Sometimes we need to add or remove passwords from a pdf file. You can do it using Google Chrome or many other UI tools also. read more

Install redis on Mac

Redis is an open source, in-memory data structure store, used as database, cache and message broker. It is one of the most popular key-value nosql read more

Mac – hide and unhide a file or directory

Mac command line utility chflags can be used t unhide or hide a hidden folder or file on Mac. A hidden folder will start appearing read more

Mac – open a terminal from a folder

Sometimes we want open Mac terminal from a specific folder which should automatically change directory to that folder. This can be achieved in Mac by read more

Mac – print java home on command line

To print Java (JVM) home path on command line the following command (jave_home) can be used as shown below: $ /usr/libexec/java_home /Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home To display all read more

Mac – search files on command line using mdfind

Mac spotlight and finder are great way to find files on Mac. But Mac also has command line utility mdfind (utility to query meta data) read more

Mac command line utility open – some handy tips for better productivity

Mac command line utility open can be use to open files, folders, etc. It is pretty handy if you use terminal quite often on mac. read more

Mac terminal – how to close shell on exit

It is somewhat tedious to close a terminal window shell manually after the shell exit. By default Mac terminal does not close the shell on read more

mac pkgutil – quick start guide

pkgutil can be used to query Mac OS X Installer packages on Mac. This can be useful to get information about various packages and files. read more