{"id":26249698,"url":"https://github.com/ukhang/my-shell","last_synced_at":"2026-05-22T18:02:50.392Z","repository":{"id":280419017,"uuid":"941898674","full_name":"Ukhang/my-shell","owner":"Ukhang","description":"This is a custom shell built in TypeScript that mimics a command-line interface.","archived":false,"fork":false,"pushed_at":"2025-03-11T07:54:45.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T08:28:45.298Z","etag":null,"topics":["custom-shell","jest-test","oop-principles","shell","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ukhang.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-03T08:38:16.000Z","updated_at":"2025-03-11T07:54:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"673977b7-a58c-4091-ae31-bb3af1bce486","html_url":"https://github.com/Ukhang/my-shell","commit_stats":null,"previous_names":["ukhang/my-shell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ukhang%2Fmy-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ukhang%2Fmy-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ukhang%2Fmy-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ukhang%2Fmy-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ukhang","download_url":"https://codeload.github.com/Ukhang/my-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243438004,"owners_count":20290863,"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":["custom-shell","jest-test","oop-principles","shell","typescript"],"created_at":"2025-03-13T15:49:19.352Z","updated_at":"2025-12-25T18:44:11.555Z","avatar_url":"https://github.com/Ukhang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![terminal](https://github.com/user-attachments/assets/d57c7985-d734-4c21-9fac-659e656e0e00)\n\n# My Shell\n\nThis is a custom shell built in TypeScript that mimics a command-line interface. It supports various built-in commands and allows users to navigate and interact with the filesystem efficiently.\n\n## Features\n\n### Core Features\n\n- ✅ **exit** - Terminates the shell session.\n- ✅ **echo [text]** - Prints the given text to the terminal.\n- ✅ **pwd** - Displays the current working directory.\n- ✅ **cd [directory]** - Changes the current directory to the specified path.\n- ✅ **ls** - Lists the contents of the current directory.\n- ✅ **touch [filename]** - Creates a new empty file with the given name.\n- ✅ **cat [filename]** - Displays the contents of a file.\n- ✅ **clear** - Clears the terminal screen.\n\n### Navigation \u0026 File Management\n\n- ✅ **mkdir [directory]** - Creates a new directory.\n- ✅ **rmdir [directory]** - Removes an empty directory.\n- ✅ **rm [filename]** - Deletes a file.\n- ✅ **cp [source] [destination]** - Copies a file or directory.\n- ✅ **mv [source] [destination]** - Moves or renames a file or directory.\n\n### Process Management\n\n- ✅ **ps** - Lists running processes.\n- ✅ **kill [PID]** - Terminates a process.\n- ✅ **jobs** - Lists background jobs.\n- ✅ **fg [job ID]** - Brings a background job to the foreground.\n- ✅ **bg [job ID]** - Resumes a stopped job in the background.\n\n### Networking\n\n- ✅ **ping [host]** - Pings a host to check connectivity.\n- ✅ **curl [URL]** - Fetches content from a URL.\n\n### Permissions\n\n- ✅ **chmod [permissions] [file]** - Changes file permissions.\n- ✅ **chown [owner] [file]** - Changes file ownership.\n\n### Quoting\n- ✅ **Single Quotes ('')** - Preserves literal value of all characters.\n- ✅ **Double Quotes (\"\")** - Allows variable expansion (echo \"$HOME\").\n- ✅ **Backslash () Outside Quotes** - Escapes special characters.\n\n## Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/Ukhang/my-shell.git\n   cd my-shell\n   ```\n2. Install dependencies:\n   ```sh\n   npm install\n   ```\n3. Run the shell:\n   ```sh\n   npm run my-shell\n   ```\n\n## Usage\n\n```sh\nmy-shell$ pwd\n/home/user/my-shell\nmy-shell$ echo Hello, World!\nHello, World!\nmy-shell$ cd ..\nChanged directory to /home/user\nmy-shell$ exit\nExiting shell...\n```\n\n## architecture diagram\n\n![image 1](https://github.com/user-attachments/assets/568448c2-391b-41ee-8edd-fcf7621f0b12)\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukhang%2Fmy-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fukhang%2Fmy-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukhang%2Fmy-shell/lists"}