{"id":28415144,"url":"https://github.com/bless-04/operating-system-shell","last_synced_at":"2025-08-14T12:36:25.879Z","repository":{"id":293651928,"uuid":"970370690","full_name":"Bless-04/Operating-System-Shell","owner":"Bless-04","description":"A basic operating system shell capable of executing  commands and performing fundamental system operations effectively. Each command is directly integrated into the shell program. All functionalities are seamlessly integrated and executed within the shell itself.","archived":true,"fork":false,"pushed_at":"2025-05-16T11:55:51.000Z","size":444,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T07:09:04.050Z","etag":null,"topics":["cpp","cpp11","shell"],"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/Bless-04.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,"zenodo":null}},"created_at":"2025-04-21T23:07:54.000Z","updated_at":"2025-05-24T18:13:58.000Z","dependencies_parsed_at":"2025-05-16T12:47:54.328Z","dependency_job_id":null,"html_url":"https://github.com/Bless-04/Operating-System-Shell","commit_stats":null,"previous_names":["bless-04/operating-system-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bless-04/Operating-System-Shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bless-04%2FOperating-System-Shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bless-04%2FOperating-System-Shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bless-04%2FOperating-System-Shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bless-04%2FOperating-System-Shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bless-04","download_url":"https://codeload.github.com/Bless-04/Operating-System-Shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bless-04%2FOperating-System-Shell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261844404,"owners_count":23218338,"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":["cpp","cpp11","shell"],"created_at":"2025-06-03T13:14:19.757Z","updated_at":"2025-06-25T09:31:02.336Z","avatar_url":"https://github.com/Bless-04.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operating System Shell\n\nA basic shell that targets both Windows And Ubuntu written in C++ for COSC 439 - Operating Systems course.\n\n## Features\n\nThis shell implements the following commands:\n\n- **cd**: Change directory\n- **clear**: Clear the terminal\n- **environ**: Display environment variables\n- **echo**: Display a line of text\n- **help**: Display help information\n- **pause**: Pause the shell\n- **quit**: Quit the shell\n- **ls**: List directory contents\n- **pwd**: Print working directory\n- **cat**: Display file contents\n- **mkdir**: Create directories\n- **rmdir**: Remove empty directories\n- **rm**: Remove files\n- **cp**: Copy files\n- **mv**: Move/rename files\n- **touch**: Create empty files or update timestamps\n- **wc**: Word count (lines, words, characters)\n- **grep**: Search text patterns in files\n\n## Building the Project\n\nThe project is built using C++. To build the shell:\n\n1. Ensure you have a C++ compiler installed like g++\n2. Navigate to the project directory\n3. Compile the main file:\n```bash\ng++ 439shell.cpp -o 439shell\n```\n\n## Usage\n\n### Interactive Mode\nRun the compiled shell:\n```bash\n./439shell\n```\n\nThe shell will start with a prompt where you can enter commands. \n```\n\u003e\u003e [command] [arguments...]\n```\n\n### Command Line Mode\nYou can also run individual commands directly from the command line without actually starting the shell.\n```bash\n./439shell [command] [arguments...]\n```\n\nExample:\n```bash\n./439shell help\n./439shell ls\n./439shell mkdir new_directory\n./439shell cat file.txt\n```\n\n## Command Reference\n\n### Directory Operations\n- `mkdir \u003cdirectory\u003e`: Create a new directory\n- `rmdir \u003cdirectory\u003e`: Remove an empty directory\n- `ls`: List directory contents\n- `pwd`: Print current working directory\n\n### File Operations\n- `touch \u003cfile\u003e`: Create an empty file or update timestamp\n- `rm \u003cfile\u003e`: Remove a file\n- `cp \u003csource\u003e \u003cdestination\u003e`: Copy files\n- `mv \u003csource\u003e \u003cdestination\u003e`: Move or rename files\n\n### File Content Operations\n- `cat \u003cfile\u003e`: Display file contents\n- `wc \u003cfile\u003e`: Count lines, words, and characters\n- `grep \u003cpattern\u003e \u003cfile\u003e`: Search for text patterns\n\n## Project Structure\n\n- `src/`: Contains implementation files for each command\n- `src/Windows/`: Windows-specific command implementations\n- `src/Unix/`: Unix-specific command implementations\n- `src/Models/`: Shell model classes. Also holds functions that should work no matter the platform\n- `439shell.cpp`: Main shell implementation\n\n## System Requirements\n\n- C++11 or later\n- Unix-like system (Linux, macOS, or WSL)\n- Windows\n- Standard C++ libraries\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbless-04%2Foperating-system-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbless-04%2Foperating-system-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbless-04%2Foperating-system-shell/lists"}