Thanks @dshubenok for help. Without him this
greatscript will never be finished.
It is a simple script which helps remove file safely. The closest analogue is 'rm' from Git system.
This script will compress the file and then remove it into recycle bin (if recycle directory does not exist, the script will create that directory). The recycle bin will automatically delete the files, which are stored there for 7 (seven) days. So, you have 7 (seven) days to change your mind about deleting some files.
- Create new directory 'bin' on your home page (using
mkdir ~/bin). - Create new file '.bash_profile' (using
touch ~/.bash_profile) or change it if it's already exist. - Complete file '.bash_profile' by the text
export PATH="${PATH}:~/bin". - Write
source ~/.bash_profilein command line. - Paste 'srm' file from this repo to '~/bin'.
- Write
chmod +x srmin command line.
- Сlone the repo.
cdinto project folder.- Write
chmod +x installin command line. - Run
./installscript.
You should write srm <filename>, where is the name of the file you want to delete.