0% found this document useful (0 votes)
7 views2 pages

(OS) LAB 2 Template

Uploaded by

khoinguyenpkn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

(OS) LAB 2 Template

Uploaded by

khoinguyenpkn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name:

Student ID:
Class:

OS
LAB 1

CHECKLIST
1. Homework
1 2 3 4 5 6
Explanation
Your code
Results and discussions

Mark:

*Notice: Export PDF file, name format:


<MSSV>_LAB2.pdf

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:

You might also like