trash
Manage the trashcan/recycling bin. More information: <https://github.com/andreafrancia/trash-cli>.
Install
- All systems
-
curl cmd.cat/trash.sh
- Debian
-
apt-get install trash-cli
- Ubuntu
-
apt-get install trash-cli
- Arch Linux
-
pacman -S trash-cli
- Kali Linux
-
apt-get install trash-cli
- Fedora
-
dnf install trash-cli
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install trash-cli
- OS X
-
brew install trash
- Raspbian
-
apt-get install trash-cli
- Dockerfile
- dockerfile.run/trash
Manage the trashcan/recycling bin. More information: <https://github.com/andreafrancia/trash-cli>.
-
Delete a file and send it to the trash:
trash path/to/file
-
List all files in the trash:
trash-list
-
Interactively restore a file from the trash:
trash-restore
-
Empty the trash:
trash-empty
-
Permanently delete all files in the trash which are older than 10 days:
trash-empty 10
-
Remove all files in the trash, which match a specific blob pattern:
trash-rm "*.o"
-
Remove all files with a specific original location:
trash-rm /path/to/file_or_directory
© tl;dr; authors and contributors