{"id":343,"date":"2025-11-24T15:23:59","date_gmt":"2025-11-24T15:23:59","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/zsumu001\/?p=343"},"modified":"2025-11-30T11:59:34","modified_gmt":"2025-11-30T11:59:34","slug":"assignment-2-working-with-command-line","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-2-working-with-command-line\/","title":{"rendered":"Assignment 2 &#8211; Working with Command Line"},"content":{"rendered":"\n<p>Instructions:<br>1. Execute the correct commands for all the steps listed below.<br>2. Take screenshots after completing each step.<br>3. Submit your screenshots in a single Word or PDF file.<br>4. Clearly label each screenshot with the corresponding step number.<br>Steps:<br>1. Open a terminal window.<br>2. Display your current working directory.<br>3. Using an absolute pathname, switch to the \/etc directory.<br>4. Using a relative pathname, move to the \/etc\/skel directory.<br>5. Using a relative pathname, move up one directory.<br>6. List the files in the current directory.<br>7. Perform a \u201clong display\u201d listing of the files in the current directory.<br>8. List all the files in the current directory that begin with the letter s.<br>9. Run the command that will determine the type of contents in the \/etc\/group file.<br>10. Display only the last five lines of the \/etc\/group file.<br>11. Execute the command to return to your home directory.<br>12. Make a directory named data in the current directory.<br>13. Copy the \/etc\/passwd file into the data directory.<br>14. Copy the \/etc\/ppp directory into the current directory (and ignore any \u201cPermission<br>denied\u201d error messages).<br>15. Rename the ppp directory that is located in the current directory to peers.<br>16. Execute the command (ls) to verify the change in the name of the directory.<br>17. Create a new empty file named test in the data directory.<br>18. Delete the data\/passwd file.<br>19. Delete the peers directory.<br><br>Reflection<br>For this assignment I performed a series of tasks to manage directories and files in Linux. I learned how to use commands to navigate directories. This assignment gave me hands on experience with managing and files and directories within the terminal.<\/p>\n\n\n\n<p> <\/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\/CYSE-270-Assignment-2-1.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of CYSE-270-Assignment-2-1.\"><\/object><a id=\"wp-block-file--media-a1f24cf5-9989-492d-8978-2832ce7458da\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/CYSE-270-Assignment-2-1.pdf\">CYSE-270-Assignment-2-1<\/a><a href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-content\/uploads\/sites\/31974\/2025\/11\/CYSE-270-Assignment-2-1.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-a1f24cf5-9989-492d-8978-2832ce7458da\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Instructions:1. Execute the correct commands for all the steps listed below.2. Take screenshots after completing each step.3. Submit your screenshots in a single Word or PDF file.4. Clearly label each <a class=\"more-link\" href=\"https:\/\/sites.wp.odu.edu\/zsumu001\/2025\/11\/24\/assignment-2-working-with-command-line\/\">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\/343"}],"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=343"}],"version-history":[{"count":4,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/posts\/343\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/zsumu001\/wp-json\/wp\/v2\/tags?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}