The open command does the equivalent of double-clicking a file or directory but is there a command to do the equivalent of right-click > Get Info?

GetFileInfo outputs info to the terminal, I want to open the info panel window on the desktop.

Alternatively, if there's a command-line way to set an app's icon, rather than dropping the new icon on the app's info panel, that would be great.

  • 2
    This seems to be asking two things at once, can you please focus the question on one problem only?
    – nohillside
    Mar 14, 2022 at 10:39
  • 2
    For your first question, see: apple.stackexchange.com/questions/410743/…
    – JRFerguson
    Mar 14, 2022 at 11:24
  • @nohillside, sorry for the two things. I thought it might be useful to say why I want to open the info panel.
    – Denis Howe
    Mar 15, 2022 at 12:05
  • If you plan to do the second step manually/via mouse, it doesn’t seem to be relevant for the question. If, OTOH, you want to change the icon from the command line, please ask this :-)
    – nohillside
    Mar 15, 2022 at 12:57


Browse other questions tagged .