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

Lab1 Exercise (UNIX)

The document provides instructions for a lab assessment on UNIX file system commands. It includes a diagram of a sample UNIX directory tree with various files and subdirectories. It then lists multiple choice questions asking for the appropriate UNIX commands to perform tasks like changing directories, creating/deleting directories, viewing contents, copying/moving files, changing file permissions, editing files using vi editor, and exiting the UNIX system.

Uploaded by

Khalil Khussairi
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)
129 views

Lab1 Exercise (UNIX)

The document provides instructions for a lab assessment on UNIX file system commands. It includes a diagram of a sample UNIX directory tree with various files and subdirectories. It then lists multiple choice questions asking for the appropriate UNIX commands to perform tasks like changing directories, creating/deleting directories, viewing contents, copying/moving files, changing file permissions, editing files using vi editor, and exiting the UNIX system.

Uploaded by

Khalil Khussairi
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

Lab 1b (UNIX)

|1

SCSR2043 OPERATING SYSTEMS

Name : Student ID : Section :

Marks

Create a UNIX tree as shown in Figure 1.0 in your file UNIX Systems. Assume that all files with (*.*) extension is a normal file i.e. marblecheese.c, shortbread.txt while others is the directory.
Root (/)

bin

dev

home

tmp

bakery

cakes

pastries

cookies

brownies marblecheese.c banananut.c

cupcakes vanilla.doc chocolate.txt

cakes frosting wedding.doc

lemontart.txt sherperdpie.doc

chocchip.txt shortbread.txt

Figure 1.0

2013/14-2 @ M.MD

Lab 1b (UNIX)

|2

List of questions for the assessment: a. Arahan untuk kembali ke direktori /tmp : Command to /tmp directory b. Arahan untuk bina direktori baru bernama misc di dalam /tmp: Command to create a new directory i.e misc in /tmp cd /tmp && mkdir misc c. Arahan untuk buang direktori misc : cd/tmp && rmdir misc d. Arahan untuk melihat direktori semasa anda : Command for current directory lookup pwd-tell you where you currently are e. Arahan untuk melihat semua kandungan di dalam direktori home : Command to view a content in home directory f. Arahan untuk pergi ke direktori <bakery> : Command to <bakery> directory g. Arahan untuk pergi ke direktori -- : Command to go to -- directory h. Arahan untuk salin fail *.c ke dalam direktori -- : Command to copy *.c file into -- directory i. Arahan untuk tukar nama fail --*.c dalam direktori -- kepada --*.c : Command to change --*.c file in -- directory into --*.c j. Arahan untuk bina fail baru bernama recipes.c menggunakan penyunting vi : Command to create a new file name recipes.c using vi editor k. Arahan untuk simpan fail recipes.c dan keluar dari penyunting vi : Command to save and exit recipes.c file from vi editor l. Butang yang perlu ditekan untuk kembalikan vi dari mod input kepada mod arahan : How to change from input mode into command mode and vise versa in vi editor m. Arahan untuk tukar kebenaran capaian fail chocolate.txt kepada rwxrw-r-- di mana kebenaran capaian asalnya ialah r--rw-r--: Command to change an access right chocolate.txt from r--rw-rinto rwxrw-r-n. Arahan untuk pindahkan/alih fail --*.doc ke dalam direktori -- : Command to move --*.doc file to the -- directory o. Arahan untuk keluar dari sistem UNIX : Command to exit a UNIX system Fauziahzie66 Tav353

2013/14-2 @ M.MD

You might also like