{"id":20493644,"url":"https://github.com/code-lucidal58/mac_terminal_world","last_synced_at":"2026-02-17T11:01:25.014Z","repository":{"id":88633389,"uuid":"236913267","full_name":"code-lucidal58/mac_terminal_world","owner":"code-lucidal58","description":"Shortcuts that I learn or use to accomplish tasks in Mac Terminal","archived":false,"fork":false,"pushed_at":"2020-01-31T03:33:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T08:43:53.059Z","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/code-lucidal58.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":"2020-01-29T05:51:06.000Z","updated_at":"2020-01-31T03:33:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"2df5a59b-3f3b-41b8-a86f-68e610134c44","html_url":"https://github.com/code-lucidal58/mac_terminal_world","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/code-lucidal58/mac_terminal_world","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lucidal58%2Fmac_terminal_world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lucidal58%2Fmac_terminal_world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lucidal58%2Fmac_terminal_world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lucidal58%2Fmac_terminal_world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code-lucidal58","download_url":"https://codeload.github.com/code-lucidal58/mac_terminal_world/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code-lucidal58%2Fmac_terminal_world/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29541119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-15T17:36:03.824Z","updated_at":"2026-02-17T11:01:24.995Z","avatar_url":"https://github.com/code-lucidal58.png","language":null,"readme":"# Mac Terminal World\nThis repository has shortcuts that are handy when you want to get all your tasks done using Mac Terminal.\nBefore we start, lets make sure that your system has [HomeBrew](https://brew.sh/). It is a must when you are software developer and using Mac. They have an interesting description for themselves i.e. \n\u003e The Missing Package Manager for macOS\n\nNext thing, the inbuilt Mac terminal has a very bad UI (my opinion, don't get swayed). I prefer using \n[iTerm](https://iterm2.com/). Or, let me admit, I did not try anything else because I was happy with the latter.\n\n## Copy output of a command to clipboard\n`pbcop` is used to copy content to clipboard. The content can be from a file or output of a command. \nBelow I am trying to copy the current directory path to clipboard\n```shell\npwd | pbcopy\n```\n**NOTE**: the last next line character also gets copied. Meaning, the content in clipboard would be similar to `/Users/username/Documents(enter)`.\n\n\n## Compare contents of two folders\n`diff` is a buitin command that can be used to find difference between folders and files. There are two flags:\n* `r`: compare files/folders recursively i.e. find difference in subdirectories as well. \n* `q`: display a brief result\n```shell\ndiff -rq path-to-folder1 path-to-folder2\n```\nThe result of the above command will look something like this:\n```shell\nFiles path-to-folder1/README.md and path-to-folder2/README.md differ\nFiles path-to-folder1/docs/demoApp.md and path-to-folder2/docs/demoApp.md differ\nOnly in path-to-folder1/: x.txt\nOnly in path-to-folder2/: y.txt\n\n```\n`diff` can be used to compare content of files.\nAdditional knowledge base can be found [here](https://ss64.com/osx/diff.html)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lucidal58%2Fmac_terminal_world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-lucidal58%2Fmac_terminal_world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-lucidal58%2Fmac_terminal_world/lists"}