trash-cli

Move files and folders to the trash

  • 所有者: sindresorhus/trash-cli
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

CLI Build Status

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

主要指標

概覽
名稱與所有者sindresorhus/trash-cli
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-10-13 07:06:12
推送於2024-07-26 12:24:18
最后一次提交
發布數12
最新版本名稱v6.0.0 (發布於 2024-07-26 14:23:27)
第一版名稱v1.0.0 (發布於 2015-10-13 14:29:16)
用户参与
星數1.4k
關注者數10
派生數37
提交數39
已啟用問題?
問題數33
打開的問題數11
拉請求數4
打開的拉請求數0
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?