Azitech

Azimout's Linux weblog

make rm move files to ~/.Trash instead

leave a comment »

By default the rm command permanently deletes files. I wanted to make it move files to the “Recycling Bin” instead. After a bit of searching around, I found this:

alias rm='mv -t ~/.Trash'

I also learned that, to make the terminal re-read my .bashrc file, the command is:

source ~/.bashrc

Powered by ScribeFire.

Advertisements

Written by azimout

07/02/2008 at 14:48

Posted in Tricks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: