{"id":19577392,"url":"https://github.com/hangxingliu/useful-linux-commands","last_synced_at":"2026-05-14T17:40:31.234Z","repository":{"id":57388617,"uuid":"119291024","full_name":"hangxingliu/useful-linux-commands","owner":"hangxingliu","description":":green_book: A collection of useful linux commands that can be queried from the command line and within the browser.","archived":false,"fork":false,"pushed_at":"2019-05-02T14:06:45.000Z","size":531,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-04T08:59:03.119Z","etag":null,"topics":["linux","linux-commands","query"],"latest_commit_sha":null,"homepage":"https://linux.acm.lol/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hangxingliu.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}},"created_at":"2018-01-28T19:35:41.000Z","updated_at":"2020-01-18T15:23:37.000Z","dependencies_parsed_at":"2022-09-19T01:31:44.501Z","dependency_job_id":null,"html_url":"https://github.com/hangxingliu/useful-linux-commands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hangxingliu/useful-linux-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fuseful-linux-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fuseful-linux-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fuseful-linux-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fuseful-linux-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hangxingliu","download_url":"https://codeload.github.com/hangxingliu/useful-linux-commands/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fuseful-linux-commands/sbom","scorecard":{"id":454460,"data":{"date":"2025-08-11","repo":{"name":"github.com/hangxingliu/useful-linux-commands","commit":"df2260fe7a869384d746812bf1f22844a5a9ae27"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: useful-commands/firewall.sh:0","Info: Possibly incomplete results: error parsing shell code: \u003e must be followed by a word: useful-commands/git.sh:0","Info: Possibly incomplete results: error parsing shell code: a command can only contain words and redirects; encountered (: useful-commands/index.sh:0","Info: Possibly incomplete results: error parsing shell code: \"}\" can only be used to close a block: useful-commands/lsyncd.sh:0","Info: Possibly incomplete results: error parsing shell code: \"select foo\" must be followed by \"in\", \"do\", ;, or a newline: useful-commands/mysql.sh:0","Info: Possibly incomplete results: error parsing shell code: \"}\" can only be used to close a block: useful-commands/raspberrypi.sh:0","Info: Possibly incomplete results: error parsing shell code: a command can only contain words and redirects; encountered (: useful-commands/vim.sh:0","Warn: containerImage not pinned by hash: Dockerfile:11: pin your Docker image by updating node:8 to node:8@sha256:a681bf74805b80d03eb21a6c0ef168a976108a287a74167ab593fc953aac34df","Warn: npmCommand not pinned by hash: Dockerfile:17","Warn: npmCommand not pinned by hash: Dockerfile:25","Warn: pipCommand not pinned by hash: useful-commands/httpie.sh:9","Warn: npmCommand not pinned by hash: useful-installers/nodejs.sh:202","Warn: npmCommand not pinned by hash: useful-installers/nodejs.sh:203","Warn: downloadThenRun not pinned by hash: useful-installers/rtorrent-and-flood.sh:135","Warn: npmCommand not pinned by hash: useful-installers/rtorrent-and-flood.sh:176","Warn: npmCommand not pinned by hash: useful-installers/rtorrent-and-flood.sh:218","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   6 npmCommand dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"56 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T09:11:38.406Z","repository_id":57388617,"created_at":"2025-08-19T09:11:38.406Z","updated_at":"2025-08-19T09:11:38.406Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33036227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["linux","linux-commands","query"],"created_at":"2024-11-11T07:06:21.269Z","updated_at":"2026-05-14T17:40:31.197Z","avatar_url":"https://github.com/hangxingliu.png","language":"Shell","funding_links":["https://www.paypal.me/hangxingliu"],"categories":[],"sub_categories":[],"readme":"# Useful Linux Commands\n\n\u003ca href=\"https://www.npmjs.com/package/useful-linux-commands\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/useful-linux-commands.svg?style=flat-square\" /\u003e\n\u003c/a\u003e\n\nA collection of useful linux commands that can be queried from the command line and within the browser.\n\nThe commands and comments inside consists of two languages (English, 简体中文)\n\n![screenshot](docs/images/screenshot1.png)\n\n## Install\n\n``` bash\ngit clone https://github.com/hangxingliu/useful-linux-commands.git;\ncd useful-linux-commands;\nsudo npm install --global\n```\n\n## Usage\n\n### As a command line toolkit (CLI)\n\n``` bash\nuseful-commands keyword ...  # query commands\nuseful-commands --help       # get help information\n```\n\nthe query ways:\n\n``` bash\nuseful-commands ssh\nuseful-commands ssh git\nuseful-commands purge -fdocker # `purge` in docker command set\nuseful-commands ssh -a6 -b5 # within 5 lines before and 6 lines after \nuseful-commands -fdocker # all commands in docker command set\n```\n\n### As a web server\n\ndefault port is **10765**\n\n[PM2 deploy guide](docs/PM2_DEPLOY.md)\n\n``` bash\n# Way 1: launch server directly\nPORT=10765 useful-commands-server\n\n# Way 2: launch server by pm2\nPORT=10765 pm2 start ecosystem.prod.yaml; # ecosystem.prod.yaml is profile for production mode\n\n# Way 3: launch server by docker\nsudo docker build -t cmd-query-server .\nsudo docker run -p 80:10765 -m 256M --memory-swap 1G -d \\\n\t--name my-cmd-query-server cmd-query-server\n```\n\nthe query ways:\n\n``` bash\n# in browser:\n# input keyword or flag in search input box\n\n# in terminal:\nwget http://domain/keywords -O\nwget http://domain/keywords?color -O\ncurl http://domain/filename/keywords?a=5\u0026b=1\ncurl http://domain/help\n```\n\n## Contribute\n\n- [Commit issue](https://github.com/hangxingliu/useful-linux-commands/issues)\n- [Pull request](https://github.com/hangxingliu/useful-linux-commands/pulls)\n- [Give me coffee via Paypal](https://www.paypal.me/hangxingliu)\n\nReferences:\n\n- [Project Structure](docs/PROJECT-STRUCT.md)\n\n\n## Author\n\n[LiuYue @hangxingliu](https://github.com/hangxingliu)\n\n## License\n\n[GPL-3.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangxingliu%2Fuseful-linux-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhangxingliu%2Fuseful-linux-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangxingliu%2Fuseful-linux-commands/lists"}