{"id":20810939,"url":"https://github.com/exposedcat/onpu-os-lab-3","last_synced_at":"2026-04-26T02:32:28.035Z","repository":{"id":104256885,"uuid":"475537337","full_name":"ExposedCat/onpu-os-lab-3","owner":"ExposedCat","description":" OS laboratory work 3 122 at ONPU ","archived":false,"fork":false,"pushed_at":"2022-03-29T17:03:52.000Z","size":4673,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T13:45:06.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ExposedCat.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":"2022-03-29T16:53:37.000Z","updated_at":"2022-03-29T16:58:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fd9e5ac-b93b-482d-aa49-b7fb8e29dd7b","html_url":"https://github.com/ExposedCat/onpu-os-lab-3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExposedCat/onpu-os-lab-3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fonpu-os-lab-3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fonpu-os-lab-3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fonpu-os-lab-3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fonpu-os-lab-3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExposedCat","download_url":"https://codeload.github.com/ExposedCat/onpu-os-lab-3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fonpu-os-lab-3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32284333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"online","status_checked_at":"2026-04-26T02:00:05.962Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-17T20:29:04.910Z","updated_at":"2026-04-26T02:32:28.017Z","avatar_url":"https://github.com/ExposedCat.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ONPU Operating Systems, CS, Lab 3 [![Visits Badge](https://badges.pufler.dev/visits/exposedcat/onpu-os-lab-3)](https://github.com/ExposedCat/onpu-os-lab-3)  \nVariant: **2**  \n\n\u003cbr\u003e\n\u003chr\u003e\n\u003ch2\u003e⭐️ Lab 3\u003c/h2\u003e\n\u003chr\u003e\n\u003ch1\u003eText data processing using *NIX CLI\u003c/h1\u003e\nAll files in this repository were created as a result of laboratory work on the course «Operating Systems»  \n\n\u003cb\u003eProject team\u003c/b\u003e:  \n\u003col\u003e\n    \u003cli\u003eProkop A.S., student, AI-212\u003c/li\u003e\n    \u003cli\u003eBlazhko O.A., Associate Professor in the Department of Information Systems of State University «Odessa Polytechnic»\u003c/li\u003e\n    \u003cli\u003eUnknown cute cat\u003c/li\u003e\n\u003c/ol\u003e\n\u003cimg src=\"https://fotovmire.ru/wp-content/uploads/2019/03/11806/kot-polozhil-mordu-na-stol.jpg\" alt=\"Definitely required here cat\"\u003e\n\n---\n## ⭐️ Creating copy\n---\n### ⁠Task #2\n1.1. `pwd`  \n1.2. `whoami`  \n1.3. `git config --global user.name`  \n1.4. `date +%D`  \n1.5. `dirs -v`  \n1.6. `pushd ~/Development/ONPU/OS/onpu-os-lab-1`  \n1.7. `ls -la --sort=size`  \n1.8. `cd .git`  \n1.9. `popd`  \nMake screenshots  \n  \n### Task #2\n2.1. `vim ~/.zshrc`  \n2.2. Switch to INSERT mode: press `i`  \n\n❗️ In points 2.2. to 2.6. replace `WORDn` with corresponding word from table by your variant.  \n\n2.3. Add alias: `alias `WORD1`=\"mkdir \"`  \n2.4. Add alias: `alias `WORD2`=\"touch \"`  \n2.5. Add alias: `alias `WORD3`=\"rm -r \"`  \n2.6. Add alias: `alias `WORD4`=\"cat \"`  \n2.7. Switch to NORMAL mode: press `Esc`  \n2.8. Save end exit: press `Z` twice (capital, with shift)  \n\n### Do task #3\n3.1. `mkdir -p ~/ONPU/OS/onpu-os-lab-3`  \n3.2. `cd ~/ONPU/OS/onpu-os-lab-3`  \n3.3. `git init`  \n3.4. `cat \u003c\u003c EOF \u003e `NAME`_1`  \nFULL NAME  \n`EOF`  \n3.5. `echo 'AI-212' \u003e\u003e `NAME`_1`  \n3.6. `echo \"$(pwd)\\n$(whoami)\" \u003e `NAME`_2`  \n3.7. `cat `NAME`_1 `NAME`_2 \u003e\u003e `FULLNAME`.cat.txt`  \n3.8. `paste -s `NAME`_2 `NAME`_1 \u003e\u003e `FULLNAME`.paste.txt`  \nMake screenshots  \n\n### Do task #4\n4.1. `dirs | tr ' ' '\\n'`  \n4.2. `dirs | tr ' ' '\\n' | tr '/' '\\n'`  \n4.3. `dirs | tr ' ' '\\n' | tr '/' '\\n' | awk '{ print length(), $0 }' | sort -nu | sed 's/^[0-9]* //g'`  \n4.4. `dirs | tr ' ' '\\n' | tr '/' '\\n' | awk '{ print length(), $0 }' | sort -nu | sed 's/^[0-9]* //g' | head -n 5  `  \n4.5. `dirs | tr ' ' '\\n' | tr '/' '\\n' | awk '{ print length(), $0 }' | sort -nu | sed 's/^[0-9]* //g' | head -n 5 | wc -lL`  \nMake screenshots  \n\n### Do task #5\n5.1. Copy all screenshots to the directory of Git repository created in point 2.3.  \n5.2. Create README.md file in same directory as in 5.1.  \n5.3. Create empty GitHub repository (do not choose init-with-readme option)  \n5.4. Connect created remote repository to public using commands shown on homepage of new GitHub repository  \n5.5. Go to local repository directory  \n5.6. Stage all files in local repository: `git add .`  \n5.7. Commit all changes in local repository: `git commit -m '⭐️ Add lab screenshots'`  \n5.8. Push local commits to remote repository: `git push`  \n5.9. Make screenshot\n5.10. Repeat points 5.6. to 5.8.\n\n🎯 Done","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Fonpu-os-lab-3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexposedcat%2Fonpu-os-lab-3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Fonpu-os-lab-3/lists"}