rm is the POSIX command to remove and delete files or directories.

learn more…| top users | synonyms

0
votes
1answer
25 views

Deleting MythTV logs

My TV software setup stopped working recently. I tracked down the issue to a lack of disk space and and ran ncdu to check what was up. Turns out, MythTV logs are consuming nearly 1GB of space on my ...
2
votes
0answers
49 views

'Permission denied' when trying to delete file as root on macOS

I"m trying to delete: -rw-r--r-- 1 root wheel 507 Sep 22 04:10 com.mcafee.reporter.pliston macOS 10.13.1:bash-3.2# rm -f /Library/LaunchAgents/com.mcafee.reporter.plistrm: /Library/...
1
vote
1answer
25 views

rm -irf -Irf with find

why below statement do not ask for confirmation while using option i or I for rm ?// pass aggregated find . -name $name -type d -exec rm -irf {} \;// pass eachfind . -name $name -type d -exec rm -...
1
vote
1answer
64 views

What happens after rm -rf / on dual boot machine

I was given this machine at work which had Windows on it and I dual booted it with Linux (Ubuntu if matters), and now I'm curious what will happen if I wipe out linux with sudo rm -rf / before give ...
7
votes
1answer
2k views

How was I able to remove a root owned file without sudo [duplicate]

I had the following output for ls -lFh:-rw-r--r-- 1 hjpotter92 hjpotter92 926 Aug 2 18:40 static.yamldrwxr-xr-x 5 hjpotter92 hjpotter92 4.0K Sep 12 19:40 templates/-rw-r--r-- 1 root root ...
0
votes
2answers
99 views

macOS - cannot rm without sudo

Brand new owner of a Mac, getting to know the machine.I have stumbled upon an issue that is quite bothersome - I cannot use rm without sudo. Indeed anytime I write an rm command, the result is the ...
0
votes
3answers
98 views

What does “rm -rf” do?

I have seen the command rm -r, rm -f, and rm. I was wondering what does rm -rf do, I have looked all over and can't seem to find the answer
0
votes
0answers
55 views

Can not remove folder with rm -rf

I am using CMDER, while I try to remove a large folder with command 'rm -rf' the terminal freezes. It seems that rm process is running, but without expected result. I tried to create a new folder with ...
0
votes
1answer
228 views

rm file “Operation not permitted” even when sudo

Im working with python 2.7 and I was having import errors with random, So I checked the path and noticed it was using random.pyc instead of random.pyI tried to remove the file but it won't work....
0
votes
1answer
111 views

Can “sudo rm -rf --no-preserve-root /” on Linux destroy a Windows partition if run using dual boot?

I'm not crazy enough to test it out, but I'm curious to know if sudo rm -rf --no-preserve-root / would have any effect on other operating systems on the disk, or if it's safely contained.
0
votes
1answer
297 views

Why does rm not remove directories? [duplicate]

To delete directories you need to use the command rmdir instead of rm. I learned that unix sees everything as a file. So what is the reason that rm can't delete any type of file?
0
votes
0answers
46 views

How to change the permission of files older than x days in unix? all at same time?

I have below command to remove files older than 'x' days:find /var/mqm/errors -mtime +20 -exec rm {} \;how can i use similar code to change the permission of those files to chmod 777
4
votes
1answer
1k views

WinSCP - How to Zip, Download and Delete a file?

How is it possible to Zip, Download and Delete (ZDD) a file in WinSCP?For example, your local dir is Desktop and your remote dir (the one in your server machine) is, say, /var/www/html and you want ...
1
vote
0answers
64 views

Linux rm file / folder with non printing characters “\032”

git status shows:Untracked files: (use "git add ..." to include in what will becommitted)"\032"ls shows that folder as ?I've tried:$ rm "\032"rm: cannot remove '\032': ...
1
vote
1answer
175 views

How to use “rm -rf --no-preserve-root” in bash on Windows

After turning on Developer mode and installing the Windows Subsystem for Linux, how can I use the rm command in the bash shell running in Administrator mode?Example:rm -rf --no-preserve-root C:/...

153050per page