The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a PuTTY command for this?

Discussion in 'General Discussion' started by partsace, Jan 21, 2011.

  1. partsace

    partsace Active Member

    Joined:
    Jan 11, 2007
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I am trying to copy this:
    /home/aaaaaaa/public_html/.htaccess

    To this:
    /home/*/public_html/

    and I get this:
    "cp: omitting directory '/home/xxxxxxx/public_html"

    How do I copy 1 file to every /home/*/public_html/ directory without doing it manually?

    Scott
     
  2. Kristian0911

    Kristian0911 Member

    Joined:
    Jan 17, 2011
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    You can copy file(.htacces) with the command :
    cd /home/<username A>/public_html/
    cp -r .htaccess(file name) /home/<username B>/public_html/


    Thanks.
     
Loading...

Share This Page