Questions tagged [rm]
75 questions
2
votes
2 answers
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.
2
votes
0 answers
Safely deleting rsnapshot _delete folders
I have been using rsnapshot to backup a computer's / for approximately a year. The destination drive has filled up unexpectedly quickly within the last week or so, and the rsync command has failed, leading to lots of _delete.22400 folders created in…

Landak
- 121
- 3
2
votes
4 answers
How to quickly remove hundreds of thousands of files?
Possible Duplicate:
Doing an rm -rf on a massive directory tree takes hours
I'm running a simulation program on a computing cluster (Scientific Linux) that generates hundreds of thousands of atomic coordinate files. But I'm having a problem…

Nick
- 143
- 3
2
votes
3 answers
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) ?

Iliyas Shirol
- 235
- 1
- 3
- 6
2
votes
4 answers
Cannot remove or list directory (ls or rm) Linux - Debian
I have a log file directory at /var/log/apache2/vhosts on a Debian dedicated server. Every day I split the main access_log into respective vhostname.com_access_log files in /var/log/apache2/vhosts
In the last week or so I have noticed the server has…

user568829
- 231
- 1
- 3
- 8
2
votes
5 answers
Disable rm * on production servers
Is there a way to block rm with a single * in production servers? This would help prevent accidents like:
rm test *
instead of
rm test*

Adam Matan
- 13,194
- 19
- 55
- 75
2
votes
2 answers
How can I reclaim bytes from a nearly full, 850G mongodb partition?
Woke up this morning to find out MongoDB grew to all available disk space for some reason. I cannot repair the db to compact it, as I have no space left. I can't even start postgres to remove an old database which would free up a few gigs more. I…

Harel
- 630
- 2
- 7
- 18
2
votes
1 answer
Can't remove /var/lib/docker due to "Device or resource busy"
I've tried to uninstall docker and failed because I am not able to remove this dir /var/lib/docker and it gives me this error:
(base) [xxx@xxx ~]$ sudo rm -rf /var/lib/docker/
rm: cannot remove…

Galilej25
- 21
- 1
- 3
1
vote
1 answer
Restrict rm command for for certain groups in Linux
I want to restrict rm command for certain group. I have implemented sudo on my Linux server. sudo rm is not permitted as I've restricted it.
The issue is, if a user does not use sudo he can remove a file. My users belong to a certain…

Sheeze Mirza
- 11
- 2
1
vote
4 answers
Delete files with odd file names
I have these two files in my home directory that I am unable to delete:-
-rw-rw-r-- 1 steve steve 20551 Jan 27 23:51 \home\steve?esult_picture.png
-rw-rw-r-- 1 steve steve 22238 Jan 27 23:54 \home\steve?esult.png
The error messages…

Steve W
- 11
- 4
1
vote
1 answer
rm no longer asking for confirmation when deleting files?
On my CentOS 6.9 box I've just spotted that rm myfile no longer asks me if I really want to delete it, it just deletes it.
I've run alias and there's nothing to do with rm there.
What else could be making it act as if I'd supplied -f when I haven't?

Codemonkey
- 1,086
- 4
- 19
- 41
1
vote
3 answers
How can I *slowly* delete a large directory hiearachy to reduce disk i/o & load?
I have an ubuntu linux system. I have a directory which has a large amount of files. I can use rm -rf $NAME to delete it all. However that can use a lot of disk I/O and cause load to increase, because of the disk I/O. Even if I use ionice -c 3 it…

Amandasaurus
- 31,471
- 65
- 192
- 253
1
vote
1 answer
Accidently ran rm -fr in a directory but nothing happened
Can someone confirm that running the command rm -fr without the / does nothing?
I accidentally ran rm -rf in my command line and it seemed to do nothing.
I am running a jail-shelled cPanel account on CentOS 6.
Anyway the whole directory is under…

adjc98
- 13
- 5
1
vote
1 answer
Ubuntu OS recovery – accidentally deleted ld-linux-x86-64.so.2 from /lib64 folder in Ubuntu 14.04
I was remotely working on the machine with SSH but after deleting the ld-linux-x86-64.so.2 file by mistake I closed the ssh session and now I cannot login because it gives me following error:
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux…

Stella Martin
- 11
- 3
1
vote
1 answer
How to delete special character in linux
By mistake I made a file with the name \. How do you delete something like that? I've tried rm --\ rm "\" rm -- -\and nothing seems to work. I bet it's so simple but I'm stumbled - any suggestions?

secure212
- 228
- 1
- 3
- 10