I learned that macOS has a useful command called trash to move files to the trash instead of deleting them permanently like rm. On Linux (Ubuntu), there’s no native command for that, but you can use the trash-cli tool.
sudo apt install trash-cliBashNow, just create an alias to emulate the same command:
alias trash='trash-put'Bash🤖 Clarification on the use of Artificial Intelligence in this content
- 📝 AI used for: text correction (I’m not a native English speaker);
- 🧠 Model: ChatGPT 4.1-nano;
- 🧐 Result reviewed by a human: Yes.

Leave a Reply