Tuesday Thursday
01:30 PM - 02:50 PM
Answer each question correctly (2 points each) | 20 pts |
Total | 20 pts |
Perform each of the tasks described below and record the command(s) used to complete each task in a text file.
- Determine the current date and time stored by the system.
- Display only the full name of the current day of the week.
- Use the cat command to create a file called Names. Enter a list of at least five different names, using first and last.
- View the contents of the file you just created.
- Create another file, called Names_too. Enter a list of several first and last names.
- Create a file called Names_all that contains all the lines of Names followed by all the lines of Names_too.
- Determine the access permissions for the files in your home directory.
- Create a file in your home directory that contains the output from the w and who commands.
- Display only the last 10 lines of the /etc/passwd file.
- Display lines of the /etc/passwd file one screen at a time. Stop the display after the first screen.