Finding the icon of the default application from Terminal

by Andrei Cioara   Last Updated April 16, 2019 00:12 AM

Say I have some files


The .txt file opens with textEdit by default, the .pdf opens with Adobe Reader and the .html file will open in Google Chrome.

How can I find out this information from the command line? In particular, how can I find the icon of the default application for each of these files from the command line alone.

Thank you!

Related Questions

Updated December 29, 2018 12:12 PM

Updated November 25, 2017 19:12 PM

Updated October 30, 2018 16:12 PM

Updated March 20, 2017 15:12 PM