Lab Exercise 1
Lab Exercise 1
A command line interface (CLI) is a way of interacting with a computer directly by typing text commands
Answer:
C:\Users\Muhammad Syafiq
3. Inside your current working directory, create a new directory. Name the directory as Lesson.
Answer:
1
4. Go inside Lesson, and create another directory. Name the directory as notes.
Answer:
C:\Users\Muhammad Syafiq>cd Lesson
C:\Users\Muhammad Syafiq\Lesson>mkdir notes
5. Go inside notes (second level). Give a single command to create TWO (2) directories. Name the
directories as Topic1, Topic2 and Topic3.
cd notes
mkdir Topic1 Topic2 Topic3
7. Now that you are currently at the first level (Lesson directory). Give a single command to create
a directory at the second level (name it as tutorial) and its sub directory at the third level (name
it as Lab)
mkdir tutorial\Lab
8. From Lesson (your current working directory), Give a single command to go directly to Lab.
Answer:
C:\Users\Muhammad Syafiq\Lesson>cd toturial\Lab
9. From Lab (your current working directory), create a new directory (at fourth level) and name the
directory as “Lab Work”.
(Note: if the directory’s name is more than one word, you need to use double quotation mark.)
10. From your current working directory (third level), go to notes directory (second level).
Answer:
C:\Users\Muhammad Syafiq\Lesson\toturial\Lab>cd..
C:\Users\Muhammad Syafiq\Lesson\toturial>cd..
C:\Users\Muhammad Syafiq\Lesson>cd notes
11. From notes directory (your current working directory), go into Topic3 directory using the
following ‘auto complete’ method:
2
I. Type cd (command for changing directory)
II. Press [space bar]
III. Type To (a portion of the directory’s name Topic)
IV. Press [tab] key 3 times (until Topic3 name appear)
V. Press [ENTER]
12. Inside Topic3 directory, create a new directory. Use your name as the directory’s name.
Answer:
C:\Users\Muhammad Syafiq\Lesson\notes\Topic3>mkdir Syafiq
tree
15. Use [Snip & Sketch] tools to select the screenshot of your directory structure. (Refer the
following image as the example)
3
Paste the screenshot here