0% found this document useful (0 votes)
95 views

CSC204 Lab 2

1. The lab exercise explores common file system operations in Ubuntu and Windows like changing directories, viewing the working directory, listing files, creating, writing, copying, moving, renaming, removing files, and creating/removing directories. 2. Students also explore file protection mechanisms in Windows by right clicking a file, accessing its properties, and identifying the access control permissions set for the SYSTEM user. 3. Key file system operations covered include changing directories, printing the working directory, listing files and folders, creating/writing/viewing files, copying/moving/renaming/removing files, searching for files, and creating/removing directories.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

CSC204 Lab 2

1. The lab exercise explores common file system operations in Ubuntu and Windows like changing directories, viewing the working directory, listing files, creating, writing, copying, moving, renaming, removing files, and creating/removing directories. 2. Students also explore file protection mechanisms in Windows by right clicking a file, accessing its properties, and identifying the access control permissions set for the SYSTEM user. 3. Key file system operations covered include changing directories, printing the working directory, listing files and folders, creating/writing/viewing files, copying/moving/renaming/removing files, searching for files, and creating/removing directories.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

CSC204
PRACTICAL APPROACH OF
OPERATING SYSTEM

REPORT LAB EXERCISE 2

NURUL FARAH SYUHADA BINTI ZAIDI


Name
2020458732
Matrix No
JCS1103G
Group
DR SHAMALA
Lecturer’s Name
2 JANUARI 2022
Submission Date
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

TASK 2

Lab Title : Understanding on File system Operation and Protection Mechanism

Objectiv 1. To enable student with common file system operation for Ubuntu and Windows
es: Command Line.
2. To motivate student to explore more on file system concept such as
file protection in Ubuntu and Windows.

Prerequ Student must bring own laptop with windows installation ready, Bootable USB Flash
isites Drive with Ubuntu image.

Method Method 1 : To exercise on file system operation via Linux and Windows Command

File Linux Window


System s
Operation Comma
nd
1. Chang cd / -Takes you to the root directory. cd .. -
e Takes
Directo cd .. - Takes you up one directory level. you up
ry. one
cd - - Takes you to the previous directory. directo
ry
cd <folder name> level.

cd
<folder
name>
change
directo
ry to
folder
name.
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

FINDINGS

2. print pwd cd
workin
g
directo
ry.
FINDINGS

3. Lists ls -la dir /A


all
files
and
folders
in your
curren
t
workin
g
directo
ry (all
attribu
tes).
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

FINDINGS

4. Creati Vi csc204.txt (using vi editor) Start


ng a **Ubuntu -add “sudo” notepad
file. csc204.txt
(using
notepad)
5. Writing Writing a file into csc204.txt Writing a
a file. Press “INSERT” file into
welcome to csc204 class” –to save and quit csc204.txt
press “ESC” , then “:wq!” to write and quit. welcome
to csc204
class-
save and
exit.
FINDINGS
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

6. View more csc204.txt or more


the file cat csc204.txt csc204.txt
conten
t
FINDINGS

7. Copy a cp csc204.txt /home copy /D


file to **Ubuntu -add “sudo” csc204.txt
new Document
locatio s
n.
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

FINDINGS Verify if
the file
exist at
/Documen
ts
cd
/Documen
ts
dir

8. Move a mv csc204.txt /home move /Y


file to **Ubuntu -add “sudo” csc204.txt
a new Document
locatio s
n.(sam
e like
copy)
FINDINGS Verify if
the file
(csc204.tx
t) exist at
/Documen
ts
cd
/Documen
ts
dir

9. Renam cp csc204.txt cs110.txt rename


ea **Ubuntu -add “sudo” csc204.txt
file. cs110.txt
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

FINDINGS Verify if
the file
(csc110.txt
) exist
Dir

10. Remov rm –rf cs110.txt del


ing a **Ubuntu -add “sudo” cs110.txt
file.
FINDINGS Verify if
the file
(csc110.txt
) deleted.
Dir

11. Search find csc* find


a file “string”
csc204.txt
FINDINGS
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

12. Create mkdir CS110 mkdir


directo CS110
ry
FINDINGS Verify if
the
directory/
folder
(cs110)
exist
Dir

13. Remov rmdir CS110 **Ubuntu -add “sudo” rmdir


e CS110
directo
ry
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

FINDINGS Verify if
the
directory/
folder
(cs110)
deleted.
Dir

Step 2 : file system protection

Using the same file name csc204.txt created in step 1, student able to explore the
protection mechanism which provide the control access in Windows Operating System.

File Protection

Windows
Right click at file name csc204.txt and select the properties. Under Security option,
permission for SYSTEM determine the type of access control.
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

FINDINGS

1. Print screen the finding


2. Identify the mode of access
LAB EXERCISE 2 (SEMESTER OCT 21 FEB 22)

You might also like