{"id":19021618,"url":"https://github.com/buildwithlal/helpful-commands","last_synced_at":"2026-02-04T08:32:02.145Z","repository":{"id":211930636,"uuid":"730300328","full_name":"BuildWithLal/helpful-commands","owner":"BuildWithLal","description":"Some helpful linux commands","archived":false,"fork":false,"pushed_at":"2024-01-03T16:54:15.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-31T22:51:49.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/BuildWithLal.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":"2023-12-11T16:17:20.000Z","updated_at":"2024-07-31T22:51:54.939Z","dependencies_parsed_at":"2024-07-31T23:08:08.085Z","dependency_job_id":null,"html_url":"https://github.com/BuildWithLal/helpful-commands","commit_stats":null,"previous_names":["lalatgithub/linux-commands","buildwithlal/helpful-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BuildWithLal/helpful-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildWithLal%2Fhelpful-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildWithLal%2Fhelpful-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildWithLal%2Fhelpful-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildWithLal%2Fhelpful-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BuildWithLal","download_url":"https://codeload.github.com/BuildWithLal/helpful-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BuildWithLal%2Fhelpful-commands/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265663312,"owners_count":23807467,"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","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-08T20:22:49.624Z","updated_at":"2026-02-04T08:31:57.119Z","avatar_url":"https://github.com/BuildWithLal.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Helpful Commands for Daily Use\n\n###### Disk usage\n```\ndf -h\n```\n\n###### Find Size of a Dir and its content\n```\ndu -hs /path/to/dir\n```\n\n###### Find Size of a Dir individual folders and sort by size\n```\ndu -h | sort -h\n```\n\n###### Add user to sudoers file\n```\nsu root \nnano /etc/sudoers\n```\n\nThen add the user below admin user like below syntax.\n```\n{YOUR_USERNAME} ALL=(ALL)  ALL\n```\n\n###### use SUDO without password prompt for current user\n```\nsudo visudo\n```\n\nIn the bottom of the file, add the following line:\n```\n$USER ALL=(ALL) NOPASSWD: ALL\n```\n\n###### Check port usage\n```\nsudo lsof -i :8000\n```\n\n###### Trigger Kubernetes Job from CronJob\n```\nkubectl create job --from=cronjob/\u003ccronjob-name\u003e \u003cjob-name-to-be-created\u003e -n \u003cnamespace-name\u003e\n```\n\n###### Find the current connection slot usage and limits in PostgreSQL\n```\n   select max_conn, used, res_for_super,((max_conn - res_for_super)-used) as res_for_normal\n   from\n   (select count(*) used from pg_stat_activity) t1,\n   (select setting::int res_for_super from pg_settings\n   where name='superuser_reserved_connections') t2,\n   (select setting::int max_conn from pg_settings where name='max_connections') t3\n```\n\n###### Enable COPY PASTE between HOST machine and Virtualbox machine\nhttps://codetryout.com/vbox-guest-additions-ubuntu-22/\n\n###### Kdenlive Noise Suppressor Plugin for Ubundu\nhttps://kentwest.neocities.org/westk/librnnoise\n\n###### Export all env vars from `.env` before running a script\n```\nexport $(cat .env | xargs) \u0026\u0026 python main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildwithlal%2Fhelpful-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildwithlal%2Fhelpful-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildwithlal%2Fhelpful-commands/lists"}