Jump to content

Mac Tips: Mac Terminal trick: How to list your apps


Recommended Posts

http://cdn.mos.techradar.com/art/laptops/Apple/New%20MacBook%20%282015%29/review/macbook-stool-470-75.JPG

Every week we'll bring you a how-to guide to do something quick and cool with Mac OS X. Sometimes it will be a tutorial on a lesser-known feature, other times it'll be a trick that uses built-in functionality such as Terminal, but either way, these simple tips can make life better and easier, and they don't require any special knowledge. All you need to do is follow the instructions!

Sometimes it's handy to have a list of all the apps installed on your Mac. For instance, if you need to cleanly reinstall OS X, and then add your apps and data back afterward to make the Mac run faster, it's easier to have a list than to rely on your memory. In this article, we'll show you how to easily make a list of the apps that are installed on your Mac for backup purposes.

To begin, we'll open the Terminal (located in /Applications/Utilities), and then type the following command (all on one line):

find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print |sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##'

This command will find and list all of the files matching the name ending in ".app" on your Mac that have been downloaded from the Mac App Store.

http://mos.futurenet.com/techradar/art/MacLifeWebContent/TerminalTip-060115/ListApps-420-100.jpg

If you wish to save this list to a text file for printing or other purposes, then type the following command (all on one line) instead:

find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print |sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##' > /Desktop/apps.txt

This command will create a file called "apps.txt" on your Desktop listing all the apps on your Mac that have been purchased from the Mac App Store, allowing you to use it for any purpose you may have.

http://rss.feedsportal.com/c/669/f/415085/s/46d73614/sc/28/mf.gif


http://da.feedsportal.com/r/228767985078/u/49/f/415085/c/669/s/46d73614/sc/28/rc/1/rc.img
http://da.feedsportal.com/r/228767985078/u/49/f/415085/c/669/s/46d73614/sc/28/rc/2/rc.img
http://da.feedsportal.com/r/228767985078/u/49/f/415085/c/669/s/46d73614/sc/28/rc/3/rc.img

http://da.feedsportal.com/r/228767985078/u/49/f/415085/c/669/s/46d73614/sc/28/a2.imghttp://pi.feedsportal.com/r/228767985078/u/49/f/415085/c/669/s/46d73614/sc/28/a2t.imghttp://feeds.feedburner.com/~r/techradar/software-news/~4/sIirdD2MAu8
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...