{"id":344,"date":"2025-11-30T23:13:31","date_gmt":"2025-11-30T23:13:31","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/dberr012\/?p=344"},"modified":"2025-11-30T23:13:31","modified_gmt":"2025-11-30T23:13:31","slug":"cyse270-assignment-2","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-2\/","title":{"rendered":"CYSE270 Assignment 2"},"content":{"rendered":"\n<p><strong>Steps:<\/strong><\/p>\n\n\n\n<p>1. Open a terminal window.<\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/3b88c121-92c2-428c-a72a-c1295f942800\" width=\"492\" height=\"309\"><\/li>\n<\/ul>\n\n\n\n<p>2. Display your current working directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/ce8e7656-9a7b-4c68-93d7-4bf78133508f\" width=\"494.69129287598946\" height=\"290\"><\/li>\n<\/ul>\n\n\n\n<p>3. Using an absolute pathname, switch to the \/etc directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/ee4362e3-6197-4f8b-9918-95785259ed72\" width=\"595.5328467153284\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>4. Using a relative pathname, move to the \/etc\/skel directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/42b5ad15-90a5-495e-8f6e-47b21d24e444\" width=\"594.6921348314606\" height=\"317\"><\/li>\n<\/ul>\n\n\n\n<p>5. Using a relative pathname, move up one directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/ec7c6644-9cee-497f-b1bc-2f690c2113de\" width=\"597.6527472527472\" height=\"323\"><\/li>\n<\/ul>\n\n\n\n<p>6. List the files in the current directory.<\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/95577f0e-7aa1-49ee-82d5-e538f02f0f45\" width=\"624\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>7. Perform a \u201clong display\u201d listing of the files in the current directory.<\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/1786fe15-fea5-4ceb-bf79-5367ccebdc07\" width=\"624\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>8. List all the files in the current directory that begin with the letter s.<\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/a04ba322-6f53-4bfa-972a-37910b675482\" width=\"624\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>9. Run the command that will determine the type of contents in the \/etc\/group file.<\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/65892b9e-36b0-4c3d-a660-a0efe975aec2\" width=\"624\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>10. Display only the last five lines of the \/etc\/group file.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/52e5f8c7-fb17-4ef3-b129-0b32b3d9fbfe\" width=\"610.2272727272727\" height=\"342\"><\/li>\n<\/ul>\n\n\n\n<p>11. Execute the command to return to your home directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/313c7284-6c61-4e30-b71b-5521420eb91c\" width=\"608.8122406639004\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>12. Make a directory named data in the current directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/fe25a8b2-e34f-4072-850a-03c1ee1fba1e\" width=\"605.8888888888889\" height=\"309\"><\/li>\n<\/ul>\n\n\n\n<p>13. Copy the \/etc\/passwd file into the data directory.<\/p>\n\n\n\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/fd0d3d53-c4bf-4cf5-9d48-56b04b6359c5\" width=\"624\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>14. Copy the \/etc\/ppp directory into the current directory (and ignore any \u201cPermission<\/p>\n\n\n\n<p>denied\u201d error messages).<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/2ce26544-f66d-490b-916c-ad832fc43341\" width=\"714.8842105263158\" height=\"316\"><\/li>\n<\/ul>\n\n\n\n<p>15. Rename the ppp directory that is located in the current directory to peers.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/6169c487-90e3-4c95-86e1-3e4963c368ea\" width=\"741.0831556503198\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>16. Execute the command (ls) to verify the change in the name of the directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/606d92eb-2bb3-4945-a3ec-c11fd70f6111\" width=\"737.3333333333333\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>17. Create a new empty file named test in the data directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/8f0ce44f-1ea2-4455-8d8e-872f5b138b1e\" width=\"736.8510638297872\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>18. Delete the data\/passwd file.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/2dba9b1d-6606-4e75-afbe-22fd00e1eb93\" width=\"734.9268929503917\" height=\"319\"><\/li>\n<\/ul>\n\n\n\n<p>19. Delete the peers directory.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/7c55b836-ec5d-401d-acbc-1cce6d919c6f\" width=\"776.6808510638298\" height=\"391\"><\/li>\n<\/ul>\n\n\n\n<p>20. Re-execute the ls command.<\/p>\n\n\n\n<ul>\n<li><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/6707fdac-9e58-4a67-9bba-f5a9ac1cb8db\" width=\"778.9978586723769\" height=\"391\"><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Steps: 1. Open a terminal window. 2. Display your current working directory. 3. Using an absolute pathname, switch to the \/etc directory. 4. Using a relative pathname, move to the \/etc\/skel directory. 5. Using a relative pathname, move up one directory. 6. List the files in the current directory. 7. Perform a \u201clong display\u201d listing&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-2\/\">Read More<\/a><\/div>\n","protected":false},"author":30971,"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\/dberr012\/wp-json\/wp\/v2\/posts\/344"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/users\/30971"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":1,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/344\/revisions\/345"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}