{"id":19362421,"url":"https://github.com/moisam/lets-build-a-linux-shell","last_synced_at":"2025-10-28T21:50:11.949Z","repository":{"id":41421692,"uuid":"271016737","full_name":"moisam/lets-build-a-linux-shell","owner":"moisam","description":"Repository code for the \"Let's Build a Linux Shell\" tutorial","archived":false,"fork":false,"pushed_at":"2020-08-02T07:07:21.000Z","size":75,"stargazers_count":39,"open_issues_count":0,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T12:52:27.743Z","etag":null,"topics":["linux","linux-shell","posix","posix-shell","shell","terminal","tutorial","tutorial-code"],"latest_commit_sha":null,"homepage":"https://medium.com/dev-genius/lets-build-a-linux-shell-part-i-954c95911501","language":"C","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/moisam.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":"2020-06-09T13:55:28.000Z","updated_at":"2025-02-15T11:06:53.000Z","dependencies_parsed_at":"2022-08-28T12:50:40.083Z","dependency_job_id":null,"html_url":"https://github.com/moisam/lets-build-a-linux-shell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moisam/lets-build-a-linux-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisam%2Flets-build-a-linux-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisam%2Flets-build-a-linux-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisam%2Flets-build-a-linux-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisam%2Flets-build-a-linux-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moisam","download_url":"https://codeload.github.com/moisam/lets-build-a-linux-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moisam%2Flets-build-a-linux-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272619566,"owners_count":24965416,"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-29T02:00:10.610Z","response_time":87,"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-shell","posix","posix-shell","shell","terminal","tutorial","tutorial-code"],"created_at":"2024-11-10T07:28:17.702Z","updated_at":"2025-10-28T21:50:11.851Z","avatar_url":"https://github.com/moisam.png","language":"C","readme":"This repository contains the source files for the \"Let's Build a Linux Shell\" tutorial.\n\n# How to use the code\n\nYou need to download this repository to your computer, then compile and run the code.\n\n## Downloading the repository\n\nClick on the green \"Clone or Download\" button on the top-right, then click on \"Download Zip\" to save the file on your computer.\n\n## Extracting the archive\n\nOpen a terminal emulator (GNOME Terminal, Konsole, XTerm, or what-have-you), and navigate to the directory where you downloaded the ZIP file:\n```\ncd ~/path/to/zip\n```\nExtract the archive and navigate to the extracted directory:\n```\nunzip lets-build-a-linux-shell-master.zip\n```\n## Compiling the shell\nFirst, navigate to the directory in which you've extracted the downloaded archive:\n```\ncd lets-build-a-linux-shell-master/\n```\nIf you want to compile and run the shell from Part II/III of the tutorial, you can do so by navigating to the subdirectory and then running `gcc`:\n```\ncd part2-3/\ngcc -o shell main.c source.c scanner.c parser.c node.c executor.c prompt.c\n```\nIf you want to compile Parts IV and above, navigate to the subdirectory and run `make`:\n```\ncd part4/\nmake\n```\n## Running the shell\nNow you can run the shell by invoking:\n```\n./shell\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoisam%2Flets-build-a-linux-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoisam%2Flets-build-a-linux-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoisam%2Flets-build-a-linux-shell/lists"}