Linux has implemented the concept of a Trash Can, but it would work only when u delete files from the explorer ( eg nautilis ), but what happens when u delete the file from a terminal using the rm command, it gone forever.
heres a small tip to implement the same Trash Can concept while in terminal mode.
include the following statement in ur respective "~rc" file or which ever startup file u feel comfortable with.
alias rm=`mv --target-directory=$HOME/.Trash`
generally the directory named .Trash will be available in ur home directory if not u will have to create it.
now u can use ur rm command without thinking as usual.
incase u have deleted and want it back, use the mv (move) command to get it back in the required directory.
heres a small tip to implement the same Trash Can concept while in terminal mode.
include the following statement in ur respective "~rc" file or which ever startup file u feel comfortable with.
alias rm=`mv --target-directory=$HOME/.Trash`
generally the directory named .Trash will be available in ur home directory if not u will have to create it.
now u can use ur rm command without thinking as usual.
incase u have deleted and want it back, use the mv (move) command to get it back in the required directory.