Remove command not working
Matthew Martinez
rm command not working.when i type command rm file name it giving me error
No command 'trash' found, did you mean:
Command 'crash' from package 'crash' (main)
Command 'ktrash' from package 'kde-runtime' (main)
trash: command not found 3 Answers
You say the rm command isn't working but your output it relating to the trash command.
Try typing
rm --helpPlease confirm the directory /bin/rm exists.
From the error above, it looks like you're typing trash instead of rm. Trash does the same as rm, but it has to be installed first. To install it, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:
sudo apt-get install trash-clionce installed, you can type trash , to delete the file, or trash --help for help on using the command.
Try to use "trash-put" command istead.
My trash-cli version is 0.11.3 and there is no "trash" command in my /usr/bin. There are commands "trash-put", "trash-list", "trash-empty" and "restore-trash".
To use the short word "trash" instead of "trash-put"
i added an alias to my ~/.bashrc file like this:alias trash='trash-put'
And then i typed
source ~/.bashrc to reload the new ~/.bashrc version.