{"id":344,"date":"2025-11-24T15:23:59","date_gmt":"2025-11-24T15:23:59","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/zsumu001\/?p=344"},"modified":"2025-11-30T12:07:36","modified_gmt":"2025-11-30T12:07:36","slug":"assignment-3-working-with-vi-editor","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-3-working-with-vi-editor\/","title":{"rendered":"Assignment 3 &#8211; Working with vi editor"},"content":{"rendered":"\n<p>Goal<br>\u2022 Practice using the vi editor.<br>Notes:<br>\u2022 Remember the \u201cmodes\u201d in the vi editor.<br>\u2022 You may use the \u201cEscape\u201d key to return to command mode if you get confused and need<br>to start over.<br>Submission Instructions<br>\u2022 Take screenshots for each step you perform and write down the correct<br>command corresponding to each step number. Submit this in a PDF file. <\/p>\n\n\n\n<p>Task: vi Practice on Kali Linux (20 * 5 = 100 points)<br>Open the terminal in your VM, then complete the following tasks. Please take the screenshots<br>of all the necessary commands that you execute for each step and submit the screenshots<br>with their step number in a pdf file.<br>NOTE: You may write the correct vi editor commands, if screenshot is not applicable. Please see<br>the note added to some steps below.<br>1. Copy the file \/usr\/share\/doc\/zstd\/copyright to your home directory. Screenshot<br>2. Perform a long list in your home directory using the correct command. Screenshot<br>3. Open the file copyright in a vi-editor using vi command. Screenshot<br>4. Move to line 15, then insert your MIDAS ID in the same line with the following format:<br>****XXXX****(replace XXXX with your own MIDAS name). Screenshot + Write<br>Command.<br>5. Return to the command mode. Write Command<br>6. Open a new line below the current line using correct command (please refer to slides<br>with the list of commands used in vi editor). Screenshot + Write Command.<br>7. Return to the command mode. Write Command<br>8. Use command to Insert \u201c****XXXX ****\u201d five times. Screenshot + Write Command<br>9. Use command to return the top of the file. Screenshot + Write Command<br>10. Move forward three sentences. Screenshot + Write Command<br>11. Move forward four words. Screenshot + Write Command<br>12. Search for the word example or any word existing in the document that you are using<br>for lab-3. Screenshot + Write Command<\/p>\n\n\n\n<p>13. Continue to the next occurrence of the search term example. Screenshot +<br>Write Command<br>14. Delete the current word, example. Screenshot + Write Command<br>15. Delete the current line. Screenshot + Write Command<br>16. Use command to jump to the end of the file. Screenshot + Write Command<br>17. Copy line 16 and paste the text at the end of the document. Screenshot + Write<br>Command<br>18. Replace all occurrences of http with HTTP throughout the document. Screenshot +<br>Write Command<br>19. Save and quit the document. Screenshot + Write Command<br>20. Rename the file copyright to copyright_cyse270. Screenshot + Write Command<br>Please note:<br>Make sure you highlight and annotate important information.<br><br>Reflection<br>In this assignment I was able to utilize commands to navigate directories, list files, copying, renaming, and deleting files. Overall, this lab was a great way to practice commands for file management tasks<\/p>\n\n\n\n<div data-wp-interactive=\"\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!selectors.core.file.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment3-CYSE270-2.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of Assignment3-CYSE270-2.\"><\/object><a id=\"wp-block-file--media-1bf98764-6ce7-48e3-a49a-5dbe0084cec8\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment3-CYSE270-2.pdf\">Assignment3-CYSE270-2<\/a><a href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/Assignment3-CYSE270-2.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-1bf98764-6ce7-48e3-a49a-5dbe0084cec8\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Goal\u2022 Practice using the vi editor.Notes:\u2022 Remember the \u201cmodes\u201d in the vi editor.\u2022 You may use the \u201cEscape\u201d key to return to command mode if you get confused and needto <a class=\"more-link\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-3-working-with-vi-editor\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":25872,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/344"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/users\/25872"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":5,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":498,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/344\/revisions\/498"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}