{"id":25155438,"url":"https://github.com/ranimeshehata/simple-shell","last_synced_at":"2026-04-24T12:06:37.811Z","repository":{"id":226804731,"uuid":"767706287","full_name":"ranimeshehata/Simple-Shell","owner":"ranimeshehata","description":"Simple-Shell is a Linux based shell implementation written in C language. The shell provides a simple and efficient command line interface for users to interact with the operating system. The implementation of Simple Shell includes built-in commands and the ability to run external programs.","archived":false,"fork":false,"pushed_at":"2024-03-09T18:10:53.000Z","size":8035,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T11:44:01.302Z","etag":null,"topics":["c","linux","operating-systems","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"C","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/ranimeshehata.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}},"created_at":"2024-03-05T18:53:14.000Z","updated_at":"2024-03-09T18:13:04.000Z","dependencies_parsed_at":"2024-03-09T20:37:03.201Z","dependency_job_id":null,"html_url":"https://github.com/ranimeshehata/Simple-Shell","commit_stats":null,"previous_names":["ranimeshehata/simple-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ranimeshehata/Simple-Shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranimeshehata%2FSimple-Shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranimeshehata%2FSimple-Shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranimeshehata%2FSimple-Shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranimeshehata%2FSimple-Shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranimeshehata","download_url":"https://codeload.github.com/ranimeshehata/Simple-Shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranimeshehata%2FSimple-Shell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261395218,"owners_count":23152352,"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":["c","linux","operating-systems","ubuntu"],"created_at":"2025-02-09T00:51:49.309Z","updated_at":"2026-04-24T12:06:32.789Z","avatar_url":"https://github.com/ranimeshehata.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple-Shell (Multi-Processing)\n## Objectives:\n1. Familiarity with system calls in Unix environment.\n2. Introduction to processes and multi-processing.\n3. Introduction to signal handling in Unix environment.\n\n## It is required to implement a Unix shell program. A shell is simply a program that conveniently allows you to run other programs. The shell supports the following commands:\n1. The internal shell command \"exit\" which terminates the shell\n2. A command with no arguments \u003cbr\u003e\n    Example: ls, cp, rm     \n3. A command with arguments \u003cbr\u003e\n    Example: ls –l\n4. A command, with or without arguments, executed in the background using \u0026. \u003cbr\u003e\n    Example: gedit \u0026 \u003cbr\u003e\n    Details: In this case, your shell must execute the command and return immediately, not blocking until the command finishes. \u003cbr\u003e\n####\tRequirements: Show that the opened process will be nested as a child process to the shell program via opening the task manager found in the operating system. Additionally, you have to write in a log file (basic text file) when a child process is terminated (main application will be interrupted by a SIGCHLD signal). So you have to implement an interrupt handler to handle this interrupt and do the corresponding action to it.\n5. Shell builtin commands \u003cbr\u003e\n    Commands: cd \u0026 echo \u003cbr\u003e\ncd: Cover all the following cases (assume no spaces in path): \u003cbr\u003e\n            * cd \u003cbr\u003e\n            * cd ~ \u003cbr\u003e\n            * cd .. \u003cbr\u003e\n            * cd absolute_path \u003cbr\u003e\n            * cd relative_path_to_current_working_directory \u003cbr\u003e\necho: Prints the input after evaluating all expressions (assume input to echo must be within double quotations).\n6. Expression evaluation \u003cbr\u003e\n    Commands: export \u003cbr\u003e\n    Details: Set values to variables and print variables values. No mathematical operations is needed. \u003cbr\u003e \n    Export Details: Accept input of two forms, either a string without spaces, or a full string inside double quotations.\n\n### Compiling and Execution\n![image](https://github.com/ranimeshehata/Simple-Shell/assets/121239735/6e7f7312-1d5a-4368-adb0-8dda42a59973)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franimeshehata%2Fsimple-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franimeshehata%2Fsimple-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franimeshehata%2Fsimple-shell/lists"}