Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5848027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:48:07+00:00 2026-05-22T12:48:07+00:00

After searching stackoverflow and Google for the past hour I thought I would ask.

  • 0

After searching stackoverflow and Google for the past hour I thought I would ask. If the title does not make sense here is what I am looking to achieve.

/var/www/xxx/ 

Say there are files in this above directory.

/var/www/yyy/

I want the files found in directory xxx to be symbolically linked within directory yyy.
I cannot figure out how to get the symbolic links to work as such:

/var/www/yyy/filefromfolderxxx.html

as opposed to what I keep getting:

/var/www/yyy/xxx/filefromfolderxxx.html

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T12:48:08+00:00Added an answer on May 22, 2026 at 12:48 pm

    Try this:

    cd /var/www/xxx
    for a in * ; do ln -s /var/www/xxx/$a /var/www/yyy/$a ; done
    

    This will symlink all the files one-by-one.

    It’s a bit messy, though. If you have multiple sites sitting on the same codebase but requiring different configuration files, you should really teach your framework how co-ordinate that for you. It’s not really difficult, but does require more thinking than I can spare for this reply, I’m sorry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After searching online and going through past stackoverflow posts for a suitable implementation for
First time posting here after having great results searching for other answers on stackoverflow.
I have a very tricky problem and after long searching (google, stackoverflow, ...) i
After searching for a while in books, here on stackoverflow and on the general
After searching online, the best solution I've found so far is to just make
After searching a lot i did not get any answers and finally i had
After searching stackoverflow.com I found several questions asking how to remove duplicates, but none
I am struggling to push my code to Heroku. And after searching on Google
After searching stackoverflow for an answer, I decided that the only problems that were
I would like to know after much searching how I would match different variations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.