{"id":20893138,"url":"https://github.com/abhraneel2004/os_lab_2024","last_synced_at":"2026-04-13T13:02:56.514Z","repository":{"id":249619389,"uuid":"832020342","full_name":"abhraneel2004/OS_lab_2024","owner":"abhraneel2004","description":"This is a repository that contains the Codes which are done in Operating Systems Laboratory of 5th Semester CSE1 2024 in Academy Of Technology.","archived":false,"fork":false,"pushed_at":"2025-01-21T18:30:11.000Z","size":72,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T17:50:05.961Z","etag":null,"topics":["bash-script","linux","operating-system","shell-script"],"latest_commit_sha":null,"homepage":"https://www.replit.com/@abhra2004/OSlab2024","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/abhraneel2004.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}},"created_at":"2024-07-22T07:37:56.000Z","updated_at":"2025-01-21T18:30:14.000Z","dependencies_parsed_at":"2024-10-25T19:15:16.480Z","dependency_job_id":"cabd2825-4f72-48a4-95d1-bbf2110bc420","html_url":"https://github.com/abhraneel2004/OS_lab_2024","commit_stats":null,"previous_names":["abhraneel2004/os_lab_2024"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhraneel2004/OS_lab_2024","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOS_lab_2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOS_lab_2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOS_lab_2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOS_lab_2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhraneel2004","download_url":"https://codeload.github.com/abhraneel2004/OS_lab_2024/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhraneel2004%2FOS_lab_2024/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash-script","linux","operating-system","shell-script"],"created_at":"2024-11-18T10:14:46.302Z","updated_at":"2026-04-13T13:02:56.470Z","avatar_url":"https://github.com/abhraneel2004.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n## Operating System Laboratory\n\nWelcome to the Operating System Laboratory repository! This repository contains implementations of various operating system concepts and scripts in Bash. Whether you're a beginner looking to learn or an experienced developer seeking reference implementations, you've come to the right place.\n\n\n## Cheat Sheet 😉\n\n\u003ca target=\"_blank\" href=\"https://quickref.me/bash\"\u003eCheat Sheet\u003c/a\u003e\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/6725a58a-baaa-467d-9069-35aab3f3bef6\" style=\"width: 3%;\"\u003e Using Replit\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\n\n# Step-by-Step Guide: How to Use Bash in Replit.com\n\nReplit.com is a powerful online IDE that allows you to write, run, and share code directly in your browser. Follow these steps to use Bash in Replit.\n\n## Step 1: Create a New Repl\n\n1. **Visit Replit:** Open your web browser and go to [Replit.com](https://replit.com).\n2. **Log In/Sign Up:** If you don't have an account, sign up for one. If you do, log in.\n3. **Start a New Repl:** Click the `+ Create` button on the top left of the dashboard.\n\n## Step 2: Select the Bash Template\n\n1. **Choose Template:** In the \"Create a new Repl\" window, type \"Bash\" in the search bar.\n2. **Select Bash:** Click on the \"Bash\" template.\n\n## Step 3: Set Up Your Project\n\n1. **Name Your Repl:** Enter a name for your project in the \"Title\" field.\n2. **Create Repl:** Click the `Create Repl` button.\n\n## Step 4: Write Your Bash Script\n\n1. **Open the Shell:** In the Replit IDE, you will see a file named `main.sh` opened by default.\n2. **Edit the Script:** Write your Bash script in the `main.sh` file. For example, you can start with a simple script:\n    ```bash\n    echo \"Hello, World!\"\n    ```\n3. **Save Your Work:** Replit automatically saves your changes, but you can manually save them by clicking `Ctrl + S` or using the save button.\n\n## Step 5: Run Your Bash Script\n\n1. **Run the Script:** Click the `Run` button at the top of the screen. This will execute your `main.sh` script.\n2. **View Output:** The output of your script will be displayed in the console at the bottom of the screen.\n\n## Step 6: Install Additional Packages (if needed)\n\nIf your Bash script requires additional tools or packages, you can install them using the terminal:\n\n1. **Open the Terminal:** Click on the `Shell` tab at the bottom of the Replit interface.\n2. **Install Packages:** Use package manager commands to install the necessary packages. For example, to install `bc`:\n    ```bash\n    sudo apt-get update\n    sudo apt-get install bc\n    ```\n\n## Step 7: Explore and Share\n\n1. **Explore:** Feel free to explore more features of Replit, such as version control, collaborative coding, and more.\n2. **Share Your Repl:** You can share your project by clicking the `Share` button and copying the link to share with others.\n\n## Example Script\n\nHere's an example of a simple Bash script that calculates the factorial of a number:\n\n```bash\n#!/bin/bash\n\nfactorial() {\n  n=$1\n  facto=1\n  for ((i=1; i\u003c=n; i++)); do\n    facto=$((facto * i))\n  done\n  echo $facto\n}\n\necho \"Enter a number:\"\nread number\nresult=$(factorial $number)\necho \"The factorial of $number is $result\"\n```\n\n## Running the Example Script\n\n1. **Copy the Script:** Copy the above script into your `main.sh` file.\n2. **Run the Script:** Click the `Run` button to execute the script.\n3. **Input a Number:** When prompted, enter a number to see its factorial.\n\n---\n\nBy following these steps, you can easily write and execute Bash scripts using Replit.com. Happy coding!\n\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/6725a58a-baaa-467d-9069-35aab3f3bef6\" style=\"width: 3%;\"\u003e Installation and Setup in Loacal Machine\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\n\n### 1. Install `bc` and Bash\n\nMake sure you have `bc` and Bash installed. You can install them using the following commands:\n\n```bash\n# Update package list\nsudo apt-get update\n\n# Install bc and bash\nsudo apt-get install bc bash\n```\n\n### 2. VS Code (Optional)\n\nDownload and install [Visual Studio Code](https://code.visualstudio.com/). This repository is configured with a `.vscode` folder containing useful settings for your coding environment.\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/1c115655-468b-442b-a379-a571ded16107\" style=\"width: 3%;\"\u003e Running the Code\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\nNavigate to the specific directory of the code you want to run and use the following commands:\n\n```bash\n# Make the script executable\nchmod +x script_name.sh\n\n# Run the Bash script\n./script_name.sh\n```\n\nReplace `script_name.sh` with the name of your Bash script.\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/7c437a5b-2f8e-426a-bf5a-290ad2c3d99a\" style=\"width: 3%;\"\u003e Contributing\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\nWe welcome contributions from the community! To contribute to this project, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix: `git checkout -b feature-name`.\n3. Make your changes and commit them with a descriptive commit message.\n4. Push your changes to your fork: `git push origin feature-name`.\n5. Open a pull request to the main repository.\n\nBelow is an explanation of the commands for forking and contributing to a GitHub repository:\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/ec813301-09b4-4c04-9730-b84df7f2fbd3\" style=\"width: 3%;\"\u003e Forking the Repository\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\n1. **Fork the repository:** Click the \"Fork\" button at the top right of the repository page. This creates a copy of the repository in your GitHub account.\n\n   ![Forking](gifs/fork.gif)\n\n2. **Clone your forked repository:** Open your terminal and run the following command to clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/your-username/repository.git\n   ```\n\n   Replace `your-username` with your GitHub username and `repository` with the name of the repository.\n\n   ![Clone](gifs/clone.gif)\n\n## Contributing\n\n1. **Create a new branch:** Move into the repository directory and create a new branch for your feature or bug fix:\n\n   ```bash\n   cd repository\n   git checkout -b feature-name\n   ```\n\n   Replace `feature-name` with a descriptive name for your contribution.\n\n   ![Branch](gifs/branch.gif)\n\n2. **Make your changes:** Modify the code, add new features, or fix bugs. Once done, stage and commit your changes:\n\n   ```bash\n   git add .\n   git commit -m \"Description of changes\"\n   ```\n\n   Replace \"Description of changes\" with a concise and descriptive commit message.\n\n   ![Commit](gifs/commit.gif)\n\n3. **Push to your fork:** Push your changes to your forked repository on GitHub:\n\n   ```bash\n   git push origin feature-name\n   ```\n\n   Replace `feature-name` with the name of your branch.\n\n   ![Push](gifs/push.gif)\n\n4. **Create a Pull Request (PR):** Go to the GitHub page of your forked repository. GitHub will detect the recent push and display a \"Compare \u0026 pull request\" button. Click on it to create a new pull request.\n\n   ![Pull Request](gifs/pull_request.gif)\n\n   Add a title and description to your pull request, then click \"Create Pull Request.\"\n\n   ![Create Pull Request](gifs/create_pr.gif)\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/c65c4a88-e884-45ab-916c-2fe481de6c23\" style=\"width: 3%;\"\u003e Points to remember:\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n   \n- Add only code files\n\n![Open Source GIF](gifs/open_source.gif)\n\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e \u003cimg src=\"https://github.com/abhraneel2004/MAKAUT_3rdSem_DSA_AOT/assets/115551450/a8da64a4-fbc7-44ec-97ce-ef38135d0b1a\" style=\"width: 4%;\"\u003e Acknowledgements\u003c/h2\u003e \u003c/span\u003e\n\u003c/div\u003e\n\nWe appreciate the open-source community and contributors for making this project better every day. Special thanks to [GitHub](https://github.com/) for providing an excellent platform for collaboration.\n\n---\n\n**Note:** Replace `script_name.sh` with the appropriate names for your script file and desired output executable.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://media.giphy.com/media/L1R1tvI9svkIWwpVYr/giphy.gif\" alt=\"Coding GIF\" style=\"width: 50vw; overflow:hidden;\"\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhraneel2004%2Fos_lab_2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhraneel2004%2Fos_lab_2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhraneel2004%2Fos_lab_2024/lists"}