Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

rm

How do I recursively shred an entire directory tree?

August 11, 2022 by Magenaut

I have a directory tree that I would like to shred with the Linux ‘shred’ utility. Unfortunately, shred has no -R option for recursive shredding.

Categories Q&A, Unix & Linux Tags data-destruction, rm, security Leave a comment

Removing a vagrant file I see .nfs0000000000b869e300000001

August 11, 2022 by Magenaut

I removed a file and now I see:

Categories Q&A, Unix & Linux Tags files, nfs, rm, vagrant Leave a comment

How do I remove a file I accidentally created named $file?

August 11, 2022 by Magenaut

I was working on a shell script and I accidentally created a file with the variable as its name. Now I have $file in my ls output, and cannot remove it. What can I do?

Categories Q&A, Unix & Linux Tags filenames, rm, special-characters Leave a comment

Why is rm allowed to delete a file under ownership of a different user?

August 11, 2022 by Magenaut

From the post Why can rm remove read-only files? I understand that rm just needs write permission on directory to remove the file. But I find it hard to digest the behaviour where we can easily delete a file who owner and group different.

Categories Q&A, Unix & Linux Tags architecture, files, history, permissions, rm Leave a comment

Is there any way to prevent deletion of certain files from user owned directory?

August 10, 2022 by Magenaut

Let’s say user has Directory1 and it contains File1 File2 CantBeDeletedFile
How to make so the user would never be allowed to delete the CantBeDeletedFile?

Categories Q&A, Unix & Linux Tags directory, permissions, rm Leave a comment

How can I delete a folder with lots of subfolders fast?

August 10, 2022 by Magenaut

I have a folder with 266778 subfolders. How can I delete it?

Categories Q&A, Unix & Linux Tags filesystems, rm Leave a comment

Unable to delete file, even when running as root

August 10, 2022 by Magenaut

I am in the process of migrating a machine from RHEL 4 to 5. Rather than actually do an upgrade we have created a new VM (both machines are in a cloud) and I am in the process of copying across data between the two.

Categories Q&A, Unix & Linux Tags permissions, rhel, rm, root Leave a comment

How far can you go with rm -rf / as root

August 10, 2022 by Magenaut

If you are root, and you issue

Categories Q&A, Unix & Linux Tags rm, root Leave a comment

Delete all files except in a certain subdirectory with find

August 10, 2022 by Magenaut

I want to recursively delete all files not accessed in a while in folder a, except all files in the subfolder b.

Categories Q&A, Unix & Linux Tags directory, find, rm Leave a comment

Is there a UNIX command to list all recently removed files from a system

August 10, 2022 by Magenaut

Accidentally a rm -rf command was launched to my root directory instead of current directory. I stopped file removing by Ctrl+C but some files has already been removed. Is there a LINUX command to list all recently removed files from the system to get the affected applications ?

Categories Q&A, Unix & Linux Tags deleted-files, linux, rm Leave a comment
Older posts
Page1 Page2 … Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress