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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:07:10+00:00 2026-06-03T06:07:10+00:00

I needed to remove a fair number of large files from a directory. I

  • 0

I needed to remove a fair number of large files from a directory. I used ‘rm * ‘ to remove the files and went to another screen to work on something else. A while later, I used ‘rm * ‘ on the same directory, forgetting that I’d already done that.

I got an error saying “rm: cannot remove `filename’: No such file or directory.”
Then I went to the first window and there was a similar error.

Are the screens racing to see which finished the rm first? Or does the server thread the processes somehow? How do servers’ screens work with one another when they execute the same command on the same directory?

  • 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-03T06:07:11+00:00Added an answer on June 3, 2026 at 6:07 am

    In each case, rming is just unlinking a directory entry per-file. The two processes are racing each other but are likely “threaded” together only by context switches from one process to another. If one prepares to unlink a file, then gets context switched out, its competitor will likely get the chance to unlink the same file. Then when the first returns, the file is no longer there, so he moves onto the next entry that is there.

    As heximal says, in this case (rm *), the asterisk has already been expanded into a list of files, which means that you should, between the two processes, get a full listing that every file you wanted to delete was already gone.

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

Sidebar

Related Questions

So I needed to move a large package from the default src to another
I needed to change a work item field from PlainText -> String. As I
Remove first comma on each line in a file. I presume sed is needed.
I needed to reinstall a package, DrRX.bpl. I removed it from the package list,
I needed a background image for a searchbar, something similar to fotolia.com. so I
i needed help. How do i get domain from a string? For example: Hi
I would like to remove the following occurences from my tweet data: anything with
In order to remove index.html or index.htm from urls I use the following in
I was wiring up an event to use a lambda which needed to remove
Possible Duplicate: Remove border from IFrame I started on a website project some weeks

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.