Commit a95b4079 authored by Nicolas  MAILLET's avatar Nicolas MAILLET

Creation of readme.md

parent 7bcc7f73
$ sudo pip install cheat
## What to do
First, create a ```.Trash``` directory in your home if you don’t have one:
```bash
mkdir .Trash
```
Then, you just have to create an alias of ```rm```:
```bash
nano .bashrc
function rm() { mv "$@" ~/.Trash/ ;}
```
To clear the ```.Trash``` folder, you can create a second alias:
Source: https://github.com/chrisallenlane/cheat
\ No newline at end of file
```bash
nano .bashrc
function rrm() { /bin/rm -rf ~/.Trash/* ;}
```
When you really want to delete big files, you don’t want to move them first into ```.Trash```, because it can be pretty long.
So instead of the classical ```rm -rf```, just run ```/bin/rm -rf```. It is a bit more difficult but at least you wont do it by mistake (hopefully)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment