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 8585165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:59:32+00:00 2026-06-11T21:59:32+00:00

For deployment reasons, it is slightly easier for me to use symlinks, but these

  • 0

For deployment reasons, it is slightly easier for me to use symlinks, but these would be for all of my websites core files and configurations which will be accessed 10’s of thousands of times a day.

Am I more sensible to move the documents to the correct positions on the server (slightly more problematic deployment) rather than using symlinks for everything (slight performance degradation?)

  • 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-06-11T21:59:33+00:00Added an answer on June 11, 2026 at 9:59 pm

    I have created a file testfile.txt with 1000 lines of blablabla in it, and created a local symlink (testfile.link.txt) to it:

    $ ls -n
    total 12
    lrwxrwxrwx 1 1000 1000    12 2012-09-26 14:09 testfile.link.txt -> testfile.txt
    -rw-r--r-- 1 1000 1000 10000 2012-09-26 14:08 testfile.txt
    

    (The -n switch is only there to hide my super-secret username.:))

    And then executed 10 rounds of cating into /dev/null 1000 times for both files.
    (Results are in seconds.)

    Accessing the file directly:

    $ for j in `seq 1 10`; do ( time -p ( for i in `seq 1 1000`; do cat testfile.txt >/dev/null; done ) ) 2>&1 | grep 'real'; done
    real 2.32
    real 2.33
    real 2.33
    real 2.33
    real 2.33
    real 2.32
    real 2.32
    real 2.33
    real 2.32
    real 2.33
    

    Accessing through symlink:

    $ for j in `seq 1 10`; do ( time -p ( for i in `seq 1 1000`; do cat testfile.link.txt >/dev/null; done ) ) 2>&1 | grep 'real'; done
    real 2.30
    real 2.31
    real 2.36
    real 2.32
    real 2.32
    real 2.31
    real 2.31
    real 2.31
    real 2.32
    real 2.32
    

    Measured on (a rather old install of) Ubuntu:

    $ uname -srvm
    Linux 2.6.32-43-generic #97-Ubuntu SMP Wed Sep 5 16:43:09 UTC 2012 i686
    

    Of course it’s a dumbed-down example, but based on this I wouldn’t expect too much of a performance degradation when using symlinks.

    I personally think, that using symlinks is more practical:

    • As you said, your deployment process will be simpler.
    • You can also easily use versioning and roll-back if you include some kind of timestamp or version number in the directory names (e.g. my_web_files.v1, my_web_files.v2), and use the “official” name in the symlink (e.g. my_web_files) pointing to the “live” version. If you want to change the version, just re-link to another versioned directory.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For security reasons, I would like to disable the remote deployment of web applications
For deployment reasons, I am trying to use IJW to wrap a C# assembly
I'm writing a deployment script that saves timestamped backup files to a backups directory.
I have a .NET deployment project. I would like to add a custom uninstall
For deployment reasons, my development team is currently stuck with .NET 4. However I
For some reasons, I would like to deploy my application as two separate artifacts:
We're a .NET team which uses the Oracle DB for a lot of reasons
I'm attempting to mimic, as close as possible, the Heroku deployment environment but in
Below is my deployment descriptor. I'm using Spring MVC, but I've got a url
The deployment requirements for my app (a windows service written in C#) state the

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.