Quantcast
Channel: Admins Goodies » rm
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Ubuntu rm not deleting files

My colleague and I have been struggling with deleting a directory and its contents. We are working on a new version of our websites source code on Ubuntu 8.04 (dir: /var/www/websites), what we want to...

View Article



Image may be NSFW.
Clik here to view.

Can I recover from “rm /*”?

I’m running Debian… And, I accidentally ran “rm /*” as root (hurray!) – luckily I didn’t use -r, so the dirs are still intact. However, when trying to boot, I get… run-init: /sbin/init: No such file...

View Article

Image may be NSFW.
Clik here to view.

Deleting files in Linux

I need to find all files matching a certain criteria and delete them – here’s a snippet: /var/www/somesite/releases/{many directories}/tmp/attachment_fu I’d like to find all files in any...

View Article

Image may be NSFW.
Clik here to view.

Unix magic, delete all .pyc files from a tree of directories?

Is there a quick way of deleting all the .pyc files from a tree of directories? If you’ve got GNU find then you probably want find <directory name> -name '*.pyc' -delete If you need something...

View Article

Image may be NSFW.
Clik here to view.

How do I prevent accidental rm -rf /*?

Just run rm -rf /* accidentally, meant rm -rf ./* (notice the star after the slash) alias rm='rm -i' and --preserve-root by default didn’t save me, so are there any automatic safeguards for this?...

View Article


Image may be NSFW.
Clik here to view.

What happens when you ‘delete’ a file as opposed to securely shredding it?

I read that when you delete a file, depending on the situation, its possible to recover its contents. What happens on a hardware level when you you ‘delete’ a file, ex. $ rm myFile as opposed to...

View Article

Image may be NSFW.
Clik here to view.

Recover data from EXT3 filesystem

Our junior sysadmin accidently deleted some of the directories. Can anyone please suggest any free/proprietary application to recover files from an EXT3 filesystem (RHEL 5.x) ? I really hope you have...

View Article

Image may be NSFW.
Clik here to view.

I removed the run directory of /var/run on Debian and need to fix it

Can anyone tell me how I can undo a sudo rm -r /var/run mistake? I am unable to use sftp and mysql now. Asked by Patrick van Marsbergen mkdir /var/run chmod 755 /var/run that will fix most things,...

View Article


Image may be NSFW.
Clik here to view.

remove files starting with dash

I have (by mistake) created several files starting with a dash in my home directory. I can not select them nor delete them. # ls -lht -rw-r--r-- 1 root root 325 Mar 22 16:33 -s-vmstat-overall...

View Article


Image may be NSFW.
Clik here to view.

rm + how to remove file with special Characters

I have this file in my linux machine: ----------9976723563nneh4_-----192.9.200.4 I try to delete this file but I cant as all see here: what need to add to rm in order to remove this file ? rm...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images