CYSE270 Assignment 2

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 “long display” listing of the files in the current directory.

8. List all the files in the current directory that begin with the letter s.

9. Run the command that will determine the type of contents in the /etc/group file.

10. Display only the last five lines of the /etc/group file.

11. Execute the command to return to your home directory.

12. Make a directory named data in the current directory.

13. Copy the /etc/passwd file into the data directory.

14. Copy the /etc/ppp directory into the current directory (and ignore any “Permission

denied” error messages).

15. Rename the ppp directory that is located in the current directory to peers.

16. Execute the command (ls) to verify the change in the name of the directory.

17. Create a new empty file named test in the data directory.

18. Delete the data/passwd file.

19. Delete the peers directory.

20. Re-execute the ls command.

Leave a Reply

Your email address will not be published. Required fields are marked *