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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:32:49+00:00 2026-05-21T15:32:49+00:00

In windows, if I open a file with MS Word, then try to delete

  • 0

In windows, if I open a file with MS Word, then try to delete it.
The system will stop me. It prevents the file being deleted.

There is a similar mechanism in Linux?
How can I implement it when writing my own program?

  • 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-21T15:32:50+00:00Added an answer on May 21, 2026 at 3:32 pm

    There is not a similar mechanism in Linux. I, in fact, find that feature of windows to be an incredible misfeature and a big problem.

    It is not typical for a program to hold a file open that it is working on anyway unless the program is a database and updating the file as it works. Programs usually just open the file, write contents and close it when you save your document.

    vim‘s .swp file is updated as vim works, and vim holds it open the whole time, so even if you delete it, the file doesn’t really go away. vim will just lose its recovery ability if you delete the .swp file while it’s running.

    In Linux, if you delete a file while a process has it open, the system keeps it in existence until all references to it are gone. The name in the filesystem that refers to the file will be gone. But the file itself is still there on disk.

    If the system crashes while the file is still open it will be cleaned up and removed from the disk when the system comes back up.

    The reason this is such a problem in Windows is that mandatory locking frequently prevents operations that should succeed from succeeding. For example, a backup process should be able to read a file that is being written to. It shouldn’t have to stop the process that is doing the writing before the backup proceeds. In many other cases, operations that should be able to move forward are blocked for silly reasons.

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

Sidebar

Related Questions

I want to open word file from my Windows Application in C#. On button
The Open button on the open file dialog used in certain windows applications includes
Windows has GetFileTime API which allows getting file time information by open file handle.
Is it possible to open the same file in two separate windows in Xcode.
When in Windows XP, if I open the properties window for the file and
Is there any way to pop-up TIPS and pop-over any other windows open? I
The code I'm playing with is: open System open System.Windows.Forms open System.Drawing let tehform
When you try opening a MS Word document or for that matter most Windows
I want to open a folder window, in the appropriate file manager, from within
If I have several OS-X Terminal.app windows open, how can I move one Terminal

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.