Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Introduction to UNIX/Linux

CSCI1483

3 credits

Labs

Switches, Paths, and Redirection

Lab

20 points

Requirements

Answer each question correctly (2 points each)20
Total20 pts

Objective

To work with basic commands, switches, paths, and redirection

Instructions

Perform each of the tasks described below and record the command(s) used to complete each task in a text file.

  1. Determine the current date and time stored by the system.
  2. Display only the full name of the current day of the week.
  3. Use the cat command to create a file called Names. Enter a list of at least five different names, using first and last.
  4. View the contents of the file you just created.
  5. Create another file, called Names_too. Enter a list of several first and last names.
  6. Create a file called Names_all that contains all the lines of Names followed by all the lines of Names_too.
  7. Determine the access permissions for the files in your home directory.
  8. Create a file in your home directory that contains the output from the w and who commands.
  9. Display only the last 10 lines of the /etc/passwd file.
  10. Display lines of the /etc/passwd file one screen at a time. Stop the display after the first screen.