← 返回命令列表

Linux command

trashy 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

trash [path/to/file]

Example

trash [path/to/file1] [path/to/file2]

List

trash list

Restore

trash restore [file]

Remove

trash empty [file]

Example

trash restore --all

Example

trash empty --all

说明

trashy is a Rust-based command-line trash utility that provides a safe alternative to rm by moving files to the XDG Trash specification-compliant trash can. It offers a modern, fast implementation with intuitive subcommands. The main command trash moves files to trash by default. Files can be listed, restored to their original location, or permanently deleted using the respective subcommands. It integrates with desktop trash locations.

参数

put _files_
Move files to trash (default if no command given)
list
List items in the trash
restore _files_
Restore files from trash to original location
empty _files_
Permanently delete files from trash
--all
Apply to all items (with restore or empty)
-f, --force
Skip confirmation prompts
-r, --recursive
Include directories recursively
-v, --verbose
Show verbose output
-h, --help
Display help message

FAQ

What is the trashy command used for?

trashy is a Rust-based command-line trash utility that provides a safe alternative to rm by moving files to the XDG Trash specification-compliant trash can. It offers a modern, fast implementation with intuitive subcommands. The main command trash moves files to trash by default. Files can be listed, restored to their original location, or permanently deleted using the respective subcommands. It integrates with desktop trash locations.

How do I run a basic trashy example?

Run `trash [path/to/file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does put _files_ do in trashy?

Move files to trash (default if no command given)