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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:57:05+00:00 2026-05-28T07:57:05+00:00

I was reading through some source code recently that updated the code on a

  • 0

I was reading through some source code recently that updated the code on a server. Instead of just writing this to update myfile:

mv myfile.inactive myfile

There was this:

rm myfile
ln -s myfile.inactive myfile

What is the difference? Why would you want to do it the second way?

myfile may be an executable, or a currently running process, if that makes a difference.

  • 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-28T07:57:05+00:00Added an answer on May 28, 2026 at 7:57 am

    the first version rename the myfile.inactive into myfile. After that command there is no myfile.inactive anymore

    the second creates an symlink to the myfile.inactive. So this file is still there. When you remove (rm myfile) the file you only remove the symlink. Keep in mind, if you change the myfile it is also changed in myfile.inactive.
    This version is good to change easily the version you are using. e.g. myfile.debug, myfile.live, myfile.version1, myfile.version2 … you only need to change the symlink to one of the files to “activate” the one you want.

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

Sidebar

Related Questions

I was reading through some source code and came across what looks like a
Reading through some of the questions here, the general concensus seems to be that
E-Texteditor recently announced going open-source with their open company model. However after reading through
I've recently been skimming through Irrlicht's 3D game engine source code, and I really
I'm looking at writing some code that performs shadow mapping, in DX9. The sample
Whilst reading through the DirectWrite source code I came across the following struct: ///
Looking at some source code, I found this operator () => { } From
i've been reading through the linq to xml documentation in msdn and some other
I'm working my way through some ASP.NET MVC reading and I have a web
I've been reading through Programming Clojure, and I've been having some trouble understanding Stuarts

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.