ptrash(1)

πŸ“¦ version 1.1, in fedora 43, fedora 44

πŸ’– ptrash(1) β€” the General Commands Manual, but make it a group chat πŸ’–

okay bestie, welcome to the <rainbow>ptrash(1)</rainbow> page, the one and only manual for our girl ptrash. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

ptrash β€” move file(s) to the ~/.trash directory. that's it. that's the whole job. she moves stuff to the trash and she does it flawlessly. πŸ‘‘


🌸 SYNOPSIS 🌸

ptrash [OPTIONS] file-name-1 [file-name-2 ...]

see how she takes multiple file names? yeah. she's not a one-file kind of girl. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so, ptrash is a console based simple application, and honestly? lowkey iconic for it. what she does is take the file(s) you named and move them into the trash directory that lives under your home directory β€” aka ~/.trash.

and here's the cute part: if ~/.trash doesn't exist yet, she doesn't just give up and cry about it 😭. she creates it for you and then moves your file(s) in there. self-sufficient queen. main character energy fr.

now, the thing you gotta know, bestie: by default ptrash runs in non-interactive mode. which means she does not ask you if you're sure before moving a file to ~/.trash β€” even when the named file already exists in trash. she just goes ahead and overwrites that file. no warning, no vibe check, nothing. so know what you're doing, okay? 🫢


πŸ’… OPTIONS πŸ’…

ptrash supports the following options, and yes we're going through every single one because they all matter:

  • -d, --delete β€” delete file(s) from trash. like, gone gone. πŸ—‘οΈ
  • -i β€” enables an interactive moving of files to/from trash. ie. it asks for confirmation before over writing OR deleting any existing file. she'll stop and ask, bestie. so polite of her. πŸŽ€
  • -r, --restore β€” restore a file from trash to it's original location. bringing your baby back home. 🏠✨
  • -h, --help β€” prints this short usage help. the quick lil recap when you forget everything. πŸ™ˆ
  • -v, --verbose β€” verbose operation mode. she'll tell you everything she's doing, no secrets. πŸ—£οΈ
  • -V, --version β€” displays the version information. gotta know which era of ptrash you're living in. ⭐

🌈 SEE ALSO 🌈

the girlies she runs with: cp(1) mv(1) rm(1) shred(1)

(iykyk β€” shred(1) is the intense one πŸ’€)


πŸ’€ BUG(s) πŸ’€

if you think you have found a bug in ptrash, please write to me with the ptrash-<version> string in the subject line, explaining precisely about the behaviour of ptrash. be specific, be detailed, give me the whole story β€” not just "it broke". 😀


🧚 NOTE 🧚

ptrash does not facilitate moving of symbolic links to/from ~/.trash. no cap. don't try it, don't be surprised by it.

πŸ‘‘ AUTHOR πŸ‘‘

Prasad J Pandit <pj.pandit at yahoo.co.in>


and that's the whole ptrash(1) manual, bestie!! you ate that reading. go forth and trash responsibly πŸ«Άβœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’–

πŸ“¦ where this page comes from