| Summary: | rm command can't delete file, unless using the full path for the rm binary "/bin/rm" | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | John Connor <ggg32lol> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | tmb |
| Version: | 2 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | coreutils-8.15-1.1.mga2.src.rpm | CVE: | |
| Status comment: | |||
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" Status:
NEW =>
RESOLVED I understood; thank you for your answer. |
Description of problem: In the terminal when I use the rm command to delete a text file that I created, for example "myfile", the rm command shows a message, I press the ENTER key but the ls command shows me that "myfile" still exist but if I instead use the full path for the rm binary "/bin/rm" to delete "myfile", the ls command shows me that "myfile" was deleted. Version-Release number of selected component (if applicable): coreutils-8.15-1.1.mga2 Let me show you this example: 1. Use ls command to show "myfile" $ ls myfile 2. Use the rm command to delete "myfile" $ rm myfile rm: remove regular file `myfile'? 3. Use ls command and "myfile" still exist. $ ls myfile 4. Use /bin/rm to delete "myfile" $ /bin/rm myfile 5. The ls command shows "myfile" was deleted $ ls