[Mageia-dev] [Bug 8177] rm command can't delete file, unless using the full path for the rm binary "/bin/rm"

Michael Wood woodm at blueyonder.co.uk
Thu Nov 22 15:45:39 CET 2012


On 22/11/12 11:19, Thomas Backlund wrote:
> https://bugs.mageia.org/show_bug.cgi?id=8177
>
> Thomas Backlund<tmb at iki.fi>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|NEW                         |RESOLVED
>           Resolution|                            |INVALID
>                   CC|                            |tmb at iki.fi
>
> --- Comment #1 from Thomas Backlund<tmb at iki.fi>  2012-11-22 12:19:42 CET ---
>
> That is intended.
>
> rm is aliased to "rm -i" to ask the question as a safety feature, so you must
> answer the question, not only press enter.
>
> $ touch testfile
> $ ll testfile
> -rw-rw-r-- 1 tmb tmb 0 Nov 22 13:14 testfile
> $ rm  testfile
> rm: remove regular empty file `testfile'? y
> $ ll testfile
> ls: cannot access testfile: No such file or directory
>
>
> the other way to avoid the question is to do "rm -f"
>

Or if you happy to run rm as it was written and risk deleting something 
you didn't want too, then comment out the alias (and any others that get 
on your nerves:) ) from /etc/profile.d/60alias.sh




More information about the Mageia-dev mailing list