(OS) LAB 2 Template
(OS) LAB 2 Template
Student ID:
Class:
OS
LAB 1
CHECKLIST
1. Homework
1 2 3 4 5 6
Explanation
Your code
Results and discussions
Mark:
1
2. Lab 1
1. List the contents of your /etc directory, including the ownership and permissions,
and redirect the output to a file called report_<studentID>.txt within your home
directory.
Answer:
2. Sort the contents of the report_<studentID>.txt file from your current directory
and append it to the end of a new file named report-sorted.txt.
Answer:
3. Count the number of words within the report_<studentID>.txt file and append the
output to the end of a file field2.txt in your home directory. You will need to use
both input and output redirection.
Answer:
4. Using the previously created report_<studentID>.txt file, count the number of
characters of the last 9 lines.
Answer: