where are terminal apps stored?

Discussion in 'macOS' started by mulo, Aug 23, 2010.

  1. mulo macrumors 68020

    mulo

    Joined:
    Aug 22, 2010
    Location:
    Behind you
    #1
    where are terminal apps stored?

    say i have downloaded and compiled pngcrush and want to make it so that i can access it from terminal simply by typing pngcrush bla bla bla instead of having to specify the path to it?

    unlike say wget, i can't "sudo make install" pngcrush
     
  2. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #2
    If you downloaded version 1.7.12 and invoked "make" then there should be a file named pngcrush in the source directory. You could move that file wherever you want. I suppose it would be standard to move it to /usr/local/bin. You can do that by typing the following in Terminal, assuming that the pngcrush source directory is the current working directory:

    sudo cp ./pngcrush /usr/local/bin

    You can then type /usr/local/bin/pngcrush to run the app. If /usr/local/bin is in your PATH you could just type pngcrush. Or just make an alias.
     
  3. mulo thread starter macrumors 68020

    mulo

    Joined:
    Aug 22, 2010
    Location:
    Behind you
    #3
    so not /usr/sbin/ like linux? :p - ill give it a shot :)

    aa it works, thanks! :)
     

Share This Page