qmetrics.net

Trash CLI

CLI access to the freedesktop.org desktop trash

File Management & SyncDesktop/CLI app

Moves files into the same trashcan KDE, GNOME, and XFCE use, with restore and listing from the shell. Offers trash-put, trash-list, trash-restore, trash-empty, and trash-rm commands.

Overview

trash-cli exposes the FreeDesktop trash mechanism to shell users and scripts. When you delete with trash-put, files land in the desktop trash with original path, deletion time, and permissions recorded, instead of being removed immediately like rm.

Companion commands list trashed items with timestamps, interactively restore chosen files—including ranges and overwrite options—empty all or aged entries, and remove individual trashed files by pattern. The tools align with the ~/.local/share/Trash hierarchy used on a typical home partition.

Documentation discourages aliasing rm to trash-put because semantics differ, notably around directories and flags. Installation is available through pip, pipx, distribution packages on Debian, Ubuntu, Arch, and Fedora, and Homebrew on macOS, with optional shell completion packages.

The project notes it does not support Btrfs-specific trash handling and points users needing that behavior elsewhere. Cron examples show scheduling trash-empty to purge items older than a set number of days.

Key features

  • trash-put with metadata preservation
  • Interactive trash-restore selection
  • trash-list with timestamps and paths
  • Age-based trash-empty cleanup
  • Pattern-based trash-rm removal
  • Shared freedesktop trash location
  • pip, pipx, and distro packages
  • Optional bash, zsh, and tcsh completions

Use cases

  • Delete safely from terminal scripts
  • Recover accidentally removed project files
  • Purge old trash on a schedule
  • Script trash operations in automation
  • Use one trash with GUI and CLI workflows

Tags

Similar software

LocalSend

Cross-platform local network file and message sharing app

LocalSend shares files and messages with nearby devices over your local network without internet. It uses HTTPS and works across desktop and mobile systems.

  • Nearby device discovery on LAN
  • HTTPS-encrypted file transfers
  • No internet or third-party servers
DartLinux, macOS, Windows, AndroidDetails →
★ 102.2k⟳ 2 days agoApache-2.0
File Management & SyncDesktop/CLI app

Syncthing

Continuous file synchronization between your computers

Syncthing keeps folders in sync across two or more computers automatically. It prioritizes data safety, security, and ease of use for individual users.

  • Multi-device folder synchronization
  • Automatic background sync
  • Data loss protection focus
GoWeb, Linux, macOS, WindowsDetails →
★ 91.3k⟳ 4 days agoMPL-2.0
File Management & SyncDesktop/CLI app
Open Source Alternative to:DropboxMicrosoft OneDrive

Rclone

Command-line sync tool for cloud storage

Rclone copies and syncs files between local disks and many cloud backends. It mirrors familiar Unix-style file operations for remote storage.

  • Many cloud and protocol backends
  • Sync, copy, move, and check modes
  • Crypt and compress virtual layers
GoLinux, macOS, Windows, CLIDetails →
★ 61.5k⟳ todayMIT
File Management & SyncDesktop/CLI app

AList

Multi-backend file list and WebDAV gateway

AList unifies many cloud and protocol storages behind one web file browser with previews, WebDAV, and upload or download features.

  • Many storage driver backends
  • WebDAV for all storages
  • Rich file and media previews
GoDockerDetails →
★ 50.5k⟳ 1 month agoAGPL-3.0

copyparty

Portable web file server with multi-protocol uploads

copyparty runs a browser-based file server with resumable uploads and optional FTP, WebDAV, and SFTP. The host needs Python; extras add thumbnails and media indexing.

  • Resumable browser uploads and downloads
  • WebDAV, SFTP, FTP, and TFTP servers
  • Per-volume accounts and permissions
PythonWeb, Linux, macOS, WindowsDetails →
★ 47.5k⟳ 4 days agoMIT
Open Source Alternative to:DropboxFirefox Send+3

Files

Modern tabbed file manager for Windows

Files is a Windows file manager with tabs, tags, dual pane, and Git-aware views. It installs alongside File Explorer and targets power-user workflows.

  • Tabbed browsing with restore shortcut
  • Dual-pane and columns layouts
  • Color tags with sidebar filtering
C#WindowsDetails →
★ 47k⟳ todayMIT
File Management & SyncDesktop/CLI app