{"id":21593902,"url":"https://github.com/fwxs/sh_cleaner","last_synced_at":"2026-05-12T04:31:52.218Z","repository":{"id":169494908,"uuid":"132064118","full_name":"fwxs/sh_cleaner","owner":"fwxs","description":"A bash script to delete the current shell history, clear up swap and cache memory.","archived":false,"fork":false,"pushed_at":"2018-12-10T13:42:22.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T10:46:41.324Z","etag":null,"topics":["bash-script","cleaner","linux","memory-cache"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fwxs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-05-04T00:26:32.000Z","updated_at":"2021-07-15T20:52:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"91f60b57-226c-4063-8023-6a4ced9fcd25","html_url":"https://github.com/fwxs/sh_cleaner","commit_stats":null,"previous_names":["fwxs/sh_cleaner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fwxs/sh_cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwxs%2Fsh_cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwxs%2Fsh_cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwxs%2Fsh_cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwxs%2Fsh_cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fwxs","download_url":"https://codeload.github.com/fwxs/sh_cleaner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fwxs%2Fsh_cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32923714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"online","status_checked_at":"2026-05-12T02:00:06.338Z","response_time":102,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-script","cleaner","linux","memory-cache"],"created_at":"2024-11-24T17:15:05.345Z","updated_at":"2026-05-12T04:31:52.201Z","avatar_url":"https://github.com/fwxs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sh_cleaner.sh\r\n\r\nErase the current shell history, cleans cache memory, dentries, inodes and swap.\r\n\r\n## Usage\r\n\r\n```\r\n$ bash -i sh_cleaner.sh\r\n```\r\n\r\nOr\r\n\r\n```\r\n$ ./sh_cleaner.sh\r\n```\r\n\r\nNote: The script if the script is run like the first option, it has to be using the interactive switch,\r\nthis is so the script can read the *$HISTFILE*, which is not-present in an non-interactive shell\r\n(Like the one on a normal bash script).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwxs%2Fsh_cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffwxs%2Fsh_cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffwxs%2Fsh_cleaner/lists"}