{"id":18260074,"url":"https://github.com/roppa/linuxcommands","last_synced_at":"2026-02-12T01:33:43.351Z","repository":{"id":146092728,"uuid":"155850068","full_name":"roppa/LinuxCommands","owner":"roppa","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-26T12:33:20.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T23:44:35.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/roppa.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-02T10:22:32.000Z","updated_at":"2020-01-28T15:32:23.000Z","dependencies_parsed_at":"2023-05-14T06:00:24.204Z","dependency_job_id":null,"html_url":"https://github.com/roppa/LinuxCommands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roppa/LinuxCommands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2FLinuxCommands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2FLinuxCommands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2FLinuxCommands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2FLinuxCommands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roppa","download_url":"https://codeload.github.com/roppa/LinuxCommands/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2FLinuxCommands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271012175,"owners_count":24684492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"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":[],"created_at":"2024-11-05T10:41:55.800Z","updated_at":"2026-02-12T01:33:38.321Z","avatar_url":"https://github.com/roppa.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCP/SSH\n\n### SCP to Server\nSCP all files in `/path/to/files/` to `10.10.10.10` to `serverDIR`\n\n`scp -r /path/to/files/* 10.10.10.10:./[serverDIR]`\n\n### SCP From Server\nSCP all files from `serverDIR` on `10.10.10.10` to the current local directory\n\n`scp 10.10.10.10:./[serverDIR]/* .`\n\n### SSH Tunnels\nCreate SSH tunnel that uses port `9925` (localhost) and will route that traffic to `10.10.10.10`, which will then forward the request to `20.20.20.20:25`.\n\n`ssh -L 9925:20.20.20.20:25 10.10.10.10`\n\nCreate SSH tunnel that when a connection is made to the port `5044` on `10.10.10.10` it should be forwarded to port `5044` on your local machine.\n\n`ssh -R 5044:localhost:5044 10.10.10.10`\n\n#Symbolic-Links\n\n### Symbolic-Links\nCreate a symbolic link called `myApplication` that is linked to `myApplication_1.0.3`\n\n`ln -s myApplication_1.0.3 myApplication`\n\n# Exploratory Commands\n\n### Find processes running on specific port\n\n`sudo lsof -i tcp:port`\n\n### Find biggest 30 files\n\n`sudo find -type f -exec du -Sh {} + | sort -rh | head -n 30`\n\n# Running Commands\n\n### Run command every interval\n\n##### Every 1 second\n\n`while sleep 1; do [cmd]; done` \n\n`while sleep 1; do echo \"Hello\"; done`\n\n`while true; do clear; ./runScript.sh; sleep 1; done`\n\n##### Every millisecond\n\n`while sleep 0.1; do [cmd]; done` \n\n`while sleep 0.1; do echo \"Hello\"; done`\n\n\n# AWK\n\n## Get only the % in `df-h`\n`df -h / | tail -1 | awk '{print $5}'`\n\n# NC\n\n`nc -z -v {host} {port}`\n\n# Kill commands\n\n## Kill multiple processes\n\n`for pid in $(ps -ef | grep \"process name\" | awk '{print $2}'); do kill -9 $pid; done`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Flinuxcommands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froppa%2Flinuxcommands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Flinuxcommands/lists"}