{"id":25328420,"url":"https://github.com/fatima-progmmer/cmd-in-c-","last_synced_at":"2025-07-12T01:38:08.986Z","repository":{"id":277195864,"uuid":"931646709","full_name":"Fatima-progmmer/CMD-in-c-","owner":"Fatima-progmmer","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-12T16:22:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T02:49:38.163Z","etag":null,"topics":["cmd","code","cplus","cpp","folder","os","shell","window"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Fatima-progmmer.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-02-12T16:17:28.000Z","updated_at":"2025-02-12T16:22:42.000Z","dependencies_parsed_at":"2025-02-12T17:39:06.105Z","dependency_job_id":null,"html_url":"https://github.com/Fatima-progmmer/CMD-in-c-","commit_stats":null,"previous_names":["fatima-progmmer/cmd-in-c-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FCMD-in-c-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FCMD-in-c-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FCMD-in-c-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FCMD-in-c-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fatima-progmmer","download_url":"https://codeload.github.com/Fatima-progmmer/CMD-in-c-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767253,"owners_count":20992541,"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":["cmd","code","cplus","cpp","folder","os","shell","window"],"created_at":"2025-02-14T02:33:10.589Z","updated_at":"2025-04-08T02:49:42.538Z","avatar_url":"https://github.com/Fatima-progmmer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# **CMD in C - Command Prompt-like Application**\n\nWelcome to the **CMD in C** project! This project is a simple **Command Prompt-like application** built using **C** programming language. The goal is to create a basic terminal interface that can execute system commands, just like a real shell.\n\n## **Project Overview**\n\nThis project was created to explore how command-line interfaces interact with the system and to learn more about **system-level programming** using **C**. The application allows users to input commands, and the program will attempt to execute them in the system's shell.\n\n## **Features**\n\n- **Command Execution**: Execute system commands (e.g., `dir`, `ls`, etc.) from within the C program.\n- **Basic Shell**: A simple terminal interface where you can type commands and see the output.\n- **Error Handling**: Handles invalid commands and provides appropriate error messages.\n\n## **Getting Started**\n\nTo get started with the **CMD in C** application, follow these steps:\n\n### 1. Clone the repository\n```bash\ngit clone https://github.com/Fatima-progmmer/CMD-in-c\ncd CMD-in-c\n```\n\n### 2. Compile the C program\nUse a C compiler to compile the program. For example, using **GCC**:\n```bash\ngcc -o cmd cmd.c\n```\n\n### 3. Run the program\nOnce the program is compiled, you can run it:\n```bash\n./cmd\n```\n\n### 4. Start using the shell\nAfter running the program, you can type in system commands like you would in a regular command prompt or terminal. For example:\n```bash\ndir\nls\necho \"Hello, World!\"\n```\n\n## **Project Structure**\n\n- **cmd.c**: The main source file that implements the basic command prompt functionality.\n- **README.md**: Documentation for the project (this file).\n\n## **Challenges and Learnings**\n\nThis project was a great learning experience in **system-level programming**. Some challenges faced along the way included handling errors and executing shell commands correctly. However, the process deepened my understanding of how command-line interfaces and operating systems interact with each other.\n\n## **Future Improvements**\n\n- Add support for more complex shell commands.\n- Implement command history (e.g., up/down arrows to navigate previous commands).\n- Enhance error handling for unsupported commands or invalid inputs.\n- Implement more advanced features like piping and redirection.\n\n## **License**\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatima-progmmer%2Fcmd-in-c-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatima-progmmer%2Fcmd-in-c-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatima-progmmer%2Fcmd-in-c-/lists"}