| 1 |
In order to install safe-rm and make sure that it is being picked up instead of |
| 2 |
the usual "rm" command, make sure that you copy it in a location at the front of |
| 3 |
your path. |
| 4 |
|
| 5 |
For example, if your path contains: |
| 6 |
|
| 7 |
PATH=/usr/local/bin:/usr/bin:/bin |
| 8 |
|
| 9 |
Then, putting safe-rm in /usr/local/bin and renaming it to "rm" will ensure that |
| 10 |
all users on your system use safe-rm instead of the real rm. |
| 11 |
|
| 12 |
Alternatively, symlink the safe-rm binary into a location like /usr/share/safe-rm/bin/rm |
| 13 |
and then set the following in your shell: |
| 14 |
|
| 15 |
PATH="/usr/share/safe-rm/bin:$PATH" |