Questions tagged [rm]
75 questions
0
votes
1 answer
Packets dropped connecting to Azure VM through Point-to-Site RM Gateway
I've setup a point-to-site Virtual Network Gateway using the Resource Manager model. I followed both of these…

hovey
- 1
- 1
0
votes
1 answer
Single-file docker volume cannot be moved or removed due to permissions
Am I able to make it so that If I connect a single-file docker volume to a container, and the application makes an attempt to move or remove the file, the system allows it, rather than returning "Permission denied." or "...is a…

tudor -Reinstate Monica-
- 1,805
- 18
- 36
0
votes
1 answer
How is it possible for rm to throw "not a directory" and "is a directory errors"?
I got a strange error the other day. Attempting to rm -rf nav/ a directory threw "not a directory", but trying to rm nav errored with "is a directory".
How is this possible?
(source: zastica.com)

davethegr8
- 101
- 3
0
votes
1 answer
Cannot remove an empty folder with no user using by rm -rf
This is a solaris machine (unix)
I have a folder contains some subfolders, but there is no file in it.
root # ls -al `find trash`
trash:
total 6
drwxrwxrwx 3 root root 512 Aug 6 07:37 .
drwxr-xr-x 9 ---- ---- 1024 Oct 8…

orb
- 1
- 2
0
votes
1 answer
rm: cannot remove - Permission denied
Anyone have any idea why I can't remove these?
~# find /var/lib/php5/ -xdev -depth -type f -size 0 -exec ls -al {} \; -exec lsattr {} \; -exec rm -rf {} \;
-rwxrwxrwx 1 root root 0 Jan 23 05:20 /var/lib/php5/165498
-------------e--…

johnnygear
- 83
- 1
- 2
- 8
0
votes
2 answers
Delete oldest directory, skipping two of them
I have to delete oldest directory. But, two of directories does not have to be "included" in this action.
So, directory content looks like this:
[root@myserver backup]# ls -la
total 84
drwxr-xr-x 21 root root 4096 Jun 18 04:10 .
drwxr-xr-x 15 root…

user48058
- 863
- 3
- 12
- 20
0
votes
2 answers
How can I remove a directory that I own when it contains subdirectories owned by another user?
I have created a directory /home/web/test on a Debian server using a basic unprivileged account web. Another account — tomcat — then created some subdirectories and files in that folder (as you might have guessed, tomcat is a web application).
I…

gutch
- 103
- 4
0
votes
1 answer
OSX: Undeletable files
So via what I suspect is a cron'd rsync gone awry, I noticed that I have ~25000 variants of .DS_Store in a directory that's on an external disk, they're named "..DS_Store.FOO" where FOO varies. The problem is that I can't seem to delete them, even…

geoffjentry
- 151
- 1
- 6
0
votes
1 answer
How can I remove many files with names that are encapsulated in single quotes?
I have a log directory with thousands of files that are named similar to this:
''$'\351\243\216\346\211\207\343\200\201\347\273\204\345\220\210'' strutstore A'$'\350\241\250''.xlsx'
I want to delete any file that has a single quote in its name. I…

RubyRedGrapefruit
- 501
- 3
- 6
- 17
0
votes
1 answer
does RedHat EL6 uses systemd?
Does EL6 uses systemd?
OS DETAILS here
Linux version 2.6.32-642.11.1.el6.x86_64 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) SMP Wed Oct 26 10:25:23 EDT 2016
Please answer with regard to I have…
0
votes
1 answer
I have deleted /etc/rc.d/ dirs, how can I restore them?
I have accidentally deleted /etc/rc.d and /etc/rc0.d folders which resulted deletion of init.d and other related folders.
1.What is the use of /etc/rc.d, rc, rc.d, rc0.d, rc1.d, rc2.d.......rc6.d and other files inside /etc/rc.d?
2.If we…
-1
votes
1 answer
speeding up deleting a large directory by running rm -rf on multiple terminals
I have this very large directory that I'm deleting with : rm - rf .
It is taking very long, so I opened up another terminal and try deleting the same directory with rm -rf parallely.
Is this expected to speed up deleting the directory? Or is there…

Abhimanyu
- 1
- 1
-1
votes
2 answers
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
-rw-r--r-- 1 root root 2.7K Mar 22 16:33…

shantanuo
- 3,579
- 8
- 49
- 66
-2
votes
2 answers
Ubuntu - utilities ask about each file?
I'm using Ubuntu 12.10 after doing something like sudo rm *.log it asks me about each file.
do you want to delete 1234.log y/n ?
do you want to delete 12345.log y/n ?
It is having this same behavior with tar
add file 1234.log to folder.tar ? y/n
If…

rreeves
- 171
- 2
- 11
-3
votes
2 answers
Remove all files in directory except last 20
I have question why is my cmd for "removing all files in directory except last 20" not working within cron but in command prompt yes.
* * * * * ls -1tr /home/testusr/test | head -n -20 | xargs -d '\n' rm -f > /var/opt/check.log 2>&1
Directory…

George_223907
- 11
- 2