Search code examples
macosbashterminalpackagecd

How to access package contents such Photos through Bash?


I want to do something like this:

alias pictures='cd ~/Pictures/Photos.photoslibrary/Master'

However, Photos.photoslibrary is a package whose contents can be viewed in Finder. Can I change directory to the package?


Solution

  • Yes, it is a normal directory. Try:

    ls -l ~/Pictures/Photos.photoslibrary
    

    to see what is inside.