sindresorhus / Trash Cli
Licence: mit
Move files and folders to the trash
Stars: ✭ 884
Programming Languages
javascript
184084 projects - #8 most used programming language
CLI
Move files and folders to the trash
Works on macOS (10.12+), Linux, and Windows (8+).
In contrast to rm
which is dangerous and permanently delete files, this only moves them to the trash, which is much safer and reversible. I would also recommend reading my guide on safeguarding rm
.
Accepts paths and glob patterns.
Install
$ npm install --global trash-cli
Usage
$ trash --help
Usage
$ trash <path|glob> […]
Examples
$ trash unicorn.png rainbow.png
$ trash '*.png' '!unicorn.png'
Tip
Add alias rm=trash
to your .zshrc
/.bashrc
to reduce typing & safely trash files: $ rm unicorn.png
.
FAQ
Related
- trash - API for this module
- empty-trash-cli - Empty the trash
- del-cli - Delete files and folders
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].