



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Name : Mohammad Abu Salh Marks Student ID : 202007723 Instruction: Please do the following activities in sequence. You need a Linux terminal windows to enter all your commands in sequence. You will submit a screenshot with some commands of your selection as evidence of doing this by yourself. ACTIVITY 1 : BASIC LINUX COMMANDS [10 Marks] Write down instructions under command column. Each task only uses one line command. Task Command 1 Check your current working directory.^ $pwd 2 List the content of the directory.^ $ls 3 Create a directory with your name.^ $Mkdir^ Mohammad 4 Change working directory to the directory created in previous task 3.
$cd Mohammad 5 Create 3 directories using your favourite fruits name. $mkdir Mango; Strawberry; watermelon 6 Without changing directory, create a Yusliza directory under one of those directories created in task 5. $mkdir Mango/yusliza 7 Without changing directory, create a Rashidah directory under one of those directories created in task 5. $mkdir Strawberry /Rashidah 8 Change working directory to^ Rashidah^ $cd^ Strawberry/Rashidah
Create new directory Muhalim under same directory as Rashidah. $Mkdir Muhalim 10 List all directories created under the parent of current working directory $ls 11 From current working directory, create new directory Marina under same directory with Yusliza. $Mkdir Mohammad/Mango/yusliza/ Marina 12 Rename one of the fruits directory in Task 5 into one of your favourite vegetable. $cd Mohammad $mv Mango Cucumber 13 Remove the directories with no sub-directory created in task 5. $rm watermelon 14 Return back to^ /home^ directory^ Cd^ ../ 15 Use tree to draw the complete the file structure of the entire tasks done. ACTIVITY 2 : WRITING A PROGRAM / SOURCE CODE [5 Marks]
language.
.End of Worksheet 1