Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2014Fall

08.19.13 - 12.20.13

Introduction to UNIX/Linux

CSCI1483

Tuesday Thursday
10:00 AM - 11:20 AM

Switches, Paths, and Redirection

Lab02

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

pastdue

Submit Your Solution

Lab02

Request a Copy of your Solution

Lab02

Requirements

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

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.