Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118117 - alias cp, rm, mv to add -i argument
Summary: alias cp, rm, mv to add -i argument
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-06 16:43 UTC by bedo
Modified: 2014-11-05 13:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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