Professional Documents
Culture Documents
Task 01
Explain Ownership of Linux files with appropriate examples on terminal?
In Ubuntu or Linux, every file and folder has a boss (owner), a team (group), and some rules
(permissions) about what they can do with it.
c. Change the directory to teacher and copy your text file in this directory.
OR
It gives Error Reading or Writing this File because no one is allowed to read or
write in this file.
g. Assign permission of write only to user (do it twice by using both symbolic
and numeric
methods).
It gives Error Reading or Writing this File because no one is allowed to read or
write in this file.
k. Assign permission of read only to user (do it twice by using both symbolic
and numeric
methods).
n. Assign permissions of read and execute only to user (do it twice by using
both symbolic
and numeric methods).
r. Assign all permissions to user (do it twice by using both symbolic and
numeric methods).
t. Assign permission of read and execute only to group (do it twice by using
both symbolic
and numeric methods).
Task 03
a. Create 3 empty text files and name them as teachers.txt, pteacher.txt and
fteachers.txt.
b. Assign permissions to read only permission to the user (do it twice by using
both
symbolic and numeric methods).
c. Enter at least 10 10 different teachers’ names in pteacher.txt and
fteacher.txt. If any
error appears, debug that error for user only.
d. Now create directory named NUTECH and assign permissions of read only
to user and group (do it twice by using both symbolic and numeric methods).
e. Copy all files to directory NUTECH. If any error appears, debug that error
for user.
f. After that append the file teachers.txt with first five sorted names from
pteacher.txt and last five sorted names from fteacher.txt.