Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 546  / 1 Year ago, fri, april 7, 2023, 5:57:52

I recently updated my Ubuntu version to 12.04.



I have aliased rm to the command trash, and now that I have upgraded, there is no longer a command called trash. Is there an equivalent for 12.04? I just want to move files to a trash can before I delete them, so I don't go delete my all of my code, which I have done before.


More From » 12.04

 Answers
5

Try installing the trash-cli utility:


sudo apt-get install trash-cli

Usage:


trash-put           trash files and directories.
trash-empty empty the trashcan(s).
trash-list list trashed files.
trash-restore restore a trashed file.
trash-rm remove individual files from the trashcan.</pre>

For more information, check the GitHub documentation


[#30478] Saturday, April 8, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
;