I am trying to find the trash bin on bash but til now I could not find where is.
Any help, I will appreciate.
Thanks in advance.
I have an Alias that worked on Ubuntu, but I can’t make it work in Clear.
_trash='/usr/bin/trash';
if [ -x "${_trash}" ]; then
alias xxx=$(which rm);
alias rm="${_trash}";
cat >&2 << 'HERE1';
Aliased 'rm' to 'trash'. Use 'xxx' for standard 'rm'.
HERE1
else
cat >&2 << 'HERE2';
Could not find 'trash' and 'rm' has NOT been aliased to it.
HERE2
fi