Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118117

Summary: alias cp, rm, mv to add -i argument
Product: Gentoo Linux Reporter: bedo <bedrosh>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=528316
Whiteboard:
Package list:
Runtime testing required: ---

Description bedo 2006-01-06 16:43:38 UTC
could you please alias "cp, mv, rm" to add -i to the command line so users are prompted for each file before being removed/overwritten perminantly and not being able to recover (except from backups)

it makes it easier for new users to recover from mistakes; power users can always override this themselves.

once I typed by mistake "rm filename *" instead of "rm filename*" and everything in that directory is gone.

we could do the following 

edit /etc/bash/bashrc to add the following lines
alias cp="cp -i"
alias rm="rm -i"
alias mv="mv -i"


thanks
Comment 1 SpanKY gentoo-dev 2006-01-06 16:55:54 UTC
no