{"id":46823709,"url":"https://github.com/saihon/trash","last_synced_at":"2026-03-10T09:38:08.885Z","repository":{"id":196967997,"uuid":"697716541","full_name":"saihon/trash","owner":"saihon","description":"This command trashes files and directories or empties the Trash.","archived":false,"fork":false,"pushed_at":"2023-10-24T23:18:46.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-01-26T10:37:20.081Z","etag":null,"topics":["bash","command","command-line","linux","shell","trash"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saihon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-28T10:27:32.000Z","updated_at":"2023-09-28T10:57:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce0d1c56-9955-47a0-960f-9f5ec535fc6f","html_url":"https://github.com/saihon/trash","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"82a218f22bc58d7908cbdbf61b352c1cebd064bf"},"previous_names":["saihon/trash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saihon/trash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihon%2Ftrash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihon%2Ftrash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihon%2Ftrash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihon%2Ftrash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saihon","download_url":"https://codeload.github.com/saihon/trash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihon%2Ftrash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","command","command-line","linux","shell","trash"],"created_at":"2026-03-10T09:38:07.312Z","updated_at":"2026-03-10T09:38:08.710Z","avatar_url":"https://github.com/saihon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## trash\n\n\u003cbr/\u003e\n\nThis command trashes files and directories or empties the Trash.\n\n\u003cbr/\u003e\n\nTested on Ubuntu 22.04\n\nThe path of directory to be deleted is `/home/$(logname)/.local/shere/Trash`.\nWhen deleting, not only \"files\" directory also everything in the Trash including \"expunged\" and \"info\".\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## Installation\n\n\u003cbr/\u003e\n\n* Clone \u0026 Build \u0026 Install (Installed GNU make)\n  ```\n  git clone https://github.com/saihon/trash.git\n  ```\n  ```\n  make \u0026\u0026 sudo make install\n  ```\n  NOTE: Run make will generate a file named \"tt\". if change it, rewrite NAME in Makefile or install manually like bellow.\n\n\u003cbr/\u003e\n\n* Manually Download \u0026 Build \u0026 Install\n  ```\n  wget https://raw.githubusercontent.com/saihon/trash/master/trash.sh\n  ```\n  ```\n  cp trash.sh tt\n  ```\n  ```\n  chmod 755 tt\n  ```\n  ```\n  sudo mv tt /usr/local/bin/\n  ```\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## Usage\n\n\u003cbr/\u003e\n\n* Moves to Trash.\n  ```\n  $ tt LICENSE Makefile README.md trash.sh\n  ```\n\n\u003cbr/\u003e\n\n* Show in Trash formatted long. internally `ls -l`\n  ```\n  $ tt -l\n  ```\n\n\u003cbr/\u003e\n\n* Show in Trash including hidden. internally `ls -A`\n  ```\n  $ tt -a\n  ```\n\n\u003cbr/\u003e\n\n* Empties in Trash.\n  ```\n  $ tt -e\n  ```\n\n\u003cbr/\u003e\n\n* Confirm before empties.\n  ```\n  $ tt -c\n  ```\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaihon%2Ftrash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaihon%2Ftrash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaihon%2Ftrash/lists"}