Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uriid1/python-trash-cli

Managing the Trash from the Command Line.
https://github.com/uriid1/python-trash-cli

cli command-line-tool python python3 server-tool tool

Last synced: about 6 hours ago
JSON representation

Managing the Trash from the Command Line.

Awesome Lists containing this project

README

        

# python-trash-cli
Managing the Trash from the Command Line.

This script is designed according to the specification:
But does not include 'directorysizes' support.
https://specifications.freedesktop.org/trash-spec/trashspec-latest.html

# Usage
```
-P, --put
Sending one or more files to the trash.
The '*' operator is supported to send all
files from the specified directory.
Example: trash --put *

-L, --list
show the content of the Trash.
Example: trash --list

-RM, --remove
Deleting one or more files from the trash.
Example: trash -RM foo bar

-E, --empty
Emptying the Trash.
Use the -y option to delete without confirmation.
Example: trash -E -y

-RS, --restore
Restoring one or more files.
Example: trash -RS foo bar

-RSA, --restore-all
Restoring all files.
Example: trash --restore-all
```

# Install
$ git clone https://github.com/uriid1/python-trash-cli/

$ cd python-trash-cli

$ chmod +x install

$ sh install

$ Done! Delele python-trash-cli folder.

# Uninstall
$ rm ~/.local/bin/trash