TRASH-PUT(1)
π TRASH-PUT(1) β the manual page, but make it make sense
okay bestie, welcome to trash-put, from the General Commands Manual section. it's the command line trash utility and it's literally about to change your whole terminal life. let's get into it ποΈβ¨
β¨ NAME β¨
trash-put β Command line trash utility. that's it, that's the name, and it ate π
π¦ SYNOPSIS π¦
trash [OPTION] ... [ARGUMENTS] ...
trash-put [OPTION] ... [ARGUMENTS] ...
two ways in, same energy. pick your fave π«Ά
πΈ DESCRIPTION πΈ
so the Trash-cli package gives you a whole command line interface trashcan utility, and it's compliant with the FreeDesktop.org Trash Specification β yes, actual spec, actual standards, we love a girl who follows the rules. π
and the way it's thoughtful?? it remembers the name, original path, deletion date, and permissions of each trashed file. so when you go to restore something later you're not just digging through a mystery pile. she kept receipts, fr fr. π
now, where do the files actually go? depends on where they came from:
Files trashed from the home partition end up in either:
$XDG_DATA_HOME/Trash- or
~/.local/share/Trash/(and that second one is used if$XDG_DATA_HOMEis not defined or empty)
Files trashed from other partitions go to one of these two places:
$top_dir/.Trash/$uid$top_dir/.Trash-$uid
and because i know you're gonna ask what those mean:
$top_diris the mount point of the volume containing the file to be removed$uidis the numeric ID of the deleting user
heads up on the picking logic: the first option,$top_dir/.Trash/$uid, works only when the.Trashdir has the sticky bit set. the second option,$top_dir/.Trash-$uid, is used when the first is not viable. so it's a fallback situation, not a choose-your-own-adventure π§
π ARGUMENTS π
- Names of files or directories to move to the trash can. that's the whole vibe. you hand her stuff, she trashes it. iconic behavior honestly. π
π OPTIONS π
-fβ silently ignore any files or directories that do not exist. no error messages printed, and no nonzero status returned to the caller because of any such nonexistent arguments. so if it's not there, she's just not gonna make it a whole thing. drama-free. π-h,--helpβ show help message and exit. classic. π«Ά--trash-dir=TRASHDIRβ useTRASHDIRas the trash folder. you pick the spot, she respects the spot. β¨-v,--verboseβ explain what is being done. she will narrate. commentary mode activated. π£οΈ--versionβ show the program's version number and exit. π·οΈ
π EXAMPLES π
$ trash-put foo # trashes foo
look at that. one line. foo is gone. slay. π
π BUGS π
found something cursed? please, report bugs to https://github.com/andreafrancia/trash-cli/issues. the maintainers wanna know, bestie, don't gatekeep π
π IF YOU WANT SAY THANKS π
feeling grateful? the options are:
- tweet (to
@andreafranciaor#trash-cli) - or donate 1, 2 or 5 euros using paypal:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=93L6PYT4WBN5A
yes the link is that long. copy it carefully. π
π CREDITS π
- Trash was written by Andrea Francia
<andrea@andreafrancia.it> - The original version of
trash-emptywas contributed by Einar Orn Olason<eoo@hi.is> - The first version of manual pages was written by Steve Stalcup
<vorian@ubuntu.com>and was modified by Massimo Cavalleri<submax@tiscalinet.it>
legends, all of them, no cap π«‘
π₯ SEE ALSO π₯
trash-list(1)trash-restore(1)trash-empty(1)trash-rm(1)- and the FreeDesktop.org Trash Specification at
https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
Both are released under the GNU General Public License, version 2 or later. π
and that's the whole page, bestie π footer says TRASH-PUT(1) and it's a General Commands Manual situation β go forth and trash responsibly, you absolute main character π
π¦ where this page comes from
- alpine 3.24: trash-cli-doc 0.24.5.26-r1 Β· GPL-2.0-or-later
- arch rolling: trash-cli 0.24.5.26-3 Β· GPL-2.0-only
- debian trixie: trash-cli 0.24.5.26-0.3 Β· GPL-2.0-or-later
- fedora 43: trash-cli 0.24.5.26-15.fc43 Β· GPL-2.0-or-later
- fedora 44: trash-cli 0.24.5.26-18.fc44 Β· GPL-2.0-or-later
- fedora 44: trash-cli 0.26.9.29-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: trash-cli 0.24.5.26
- nixpkgs unstable: trash-cli 0.26.9.29
- ubuntu questing: trash-cli 0.24.5.26-0.3
- ubuntu resolute: trash-cli 0.24.5.26-0.3build1 Β· GPL-2.0-or-later
- ubuntu stonking: trash-cli 0.24.5.26-0.3build1 Β· GPL-2.0-or-later
- Copyright (C) 2008 Steve Stalcup <vorian@ubuntu.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms