how to link /sites in Lion

Discussion in 'macOS' started by macsymacker, Jan 11, 2012.

  1. macsymacker macrumors member

    Joined:
    Nov 12, 2011
    #1
    hello everyone,

    I would like to link /sites to another folder that I have created somewhere else.

    how can I do this?

    I looked and found linking stuff in linux and unix but /sites is a system-created folder and I don't want to mess things up.

    thank you.
     
  2. satcomer macrumors 603

    satcomer

    Joined:
    Feb 19, 2008
    Location:
    The Finger Lakes Region
  3. macsymacker thread starter macrumors member

    Joined:
    Nov 12, 2011
    #3
    hi there,

    that is exactly what I am looking for. it is easy to create an alias for /sites but that is not what I seek though. I want /sites to become an alias to another folder.

    thank you.

     
  4. mrgraff macrumors 6502a

    mrgraff

    Joined:
    Apr 18, 2010
    Location:
    Albuquerque
    #4
    If I'm reading your question right: you want to change the target of the /sites alias to be something else?

    Seems like it would be easier (and less likely to "mess things up") to just create a new alias and work with that one instead.
     
  5. macsymacker thread starter macrumors member

    Joined:
    Nov 12, 2011
    #5
    hello,

    I agree it would have been easier and more logical but I set up my Apache set up to point to another directory where I keep most of my files, nested and sorted in a self-logical way. ;-)

    anyway in the end I removed the /sites with rm -R ~/Sites and then hard linked to the other folder with ln -sF ~/sites ~/to/target

    for now it works.


     

Share This Page