कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

trash-cli

xlionjuan द्वारा

Coding Agents & IDEs
288clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Use trash-cli to safely delete files by moving them to the system trash instead of permanently removing them.

विवरण

यह स्किल क्या करती है

trash-cli is a command-line interface to the freedesktop.org trashcan. It moves files to the system trash instead of permanently deleting them, recording the original path, deletion date, and permissions. The same trashcan is used by KDE, GNOME, and XFCE.

Unlike rm, deleted files remain recoverable with full metadata, so mistakes during file management don't result in permanent data loss.

इसे कब इस्तेमाल करें

  • Recovering a config file deleted by mistake during cleanup
  • Safely removing build artifacts without risking permanent loss
  • Searching trashed files by name before deciding to restore or purge
  • Auto-emptying trash files older than N days in a cron job
  • Replacing dangerous rm calls in interactive shell sessions

उदाहरण वर्कफ़्लो

इनपुट

User asks: I accidentally trashed a config file, how do I get it back?

एजेंट
  1. 1

    Run trash-list to display all trashed files with deletion dates and original paths

  2. 2

    Pipe output through grep to locate the specific config file

  3. 3

    Run trash-restore to enter interactive mode showing numbered file list

  4. 4

    Enter the file's number to restore it to its original location

आउटपुट

Config file restored to its original path on disk

इंस्टॉलेशन

clawhub install xlionjuan/trash-cli

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक