-
-
Notifications
You must be signed in to change notification settings - Fork 251
London Class 10-Junita Lama -Terminal coursework-week 1 #219
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,34 +7,34 @@ You can mark your choice by putting an `x` in the correct box | |
| - [ ] The terminal is an interface that allows you to access the command line | ||
| - [ ] It can be much faster to complete some tasks using a Terminal than with a GUI | ||
| - [ ] You have access to many more commands and scripts on the Terminal than with a GUI | ||
| - [ ] The terminal gives you more powers/privileges to complete tasks than a GUI | ||
| - [x] The terminal gives you more powers/privileges to complete tasks than a GUI | ||
|
|
||
| **What is the correct way to move to a directory called "Projects"?** | ||
|
|
||
| - [ ] cd Projects | ||
| - [x cd Projects | ||
| - [ ] mv Projects | ||
| - [ ] cd ..Projects | ||
| - [ ] mv .. | ||
|
|
||
| **What is the correct way to move up a directory?** | ||
|
|
||
| - [ ] cd .. | ||
| - [x] cd .. | ||
| - [ ] cd ~ | ||
| - [ ] mv .. | ||
| - [ ] cd ./ | ||
|
|
||
| **How do you stop a long running task in the terminal?** | ||
|
|
||
| - [ ] The tab key | ||
| - [ ] ctrl+c | ||
| - [x] ctrl+c | ||
| - [ ] ctrl+shift or cmd+shift | ||
| - [ ] The enter key | ||
| - [ ] The escape key | ||
| - [ ] The delete key | ||
|
|
||
| **How do you auto-complete a command that you are typing?** | ||
|
|
||
| - [ ] The tab key | ||
| - [x] The tab key | ||
| - [ ] ctrl+c | ||
| - [ ] ctrl+shift or cmd+shift | ||
| - [ ] The enter key | ||
|
|
@@ -43,7 +43,7 @@ You can mark your choice by putting an `x` in the correct box | |
|
|
||
| **What's the correct command to view all the files in your current directory?** | ||
|
|
||
| - [ ] ls | ||
| - [x] ls | ||
| - [ ] pwd | ||
| - [ ] mv | ||
| - [ ] cd | ||
|
|
@@ -53,7 +53,7 @@ You can mark your choice by putting an `x` in the correct box | |
| **What's the correct command to see the current directory you are in?** | ||
|
|
||
| - [ ] ls | ||
| - [ ] pwd | ||
| - [x] pwd | ||
| - [ ] mv | ||
| - [ ] cd | ||
| - [ ] clear | ||
|
|
@@ -65,7 +65,7 @@ You can mark your choice by putting an `x` in the correct box | |
| - [ ] pwd | ||
| - [ ] mv | ||
| - [ ] cd | ||
| - [ ] clear | ||
| - [x] clear | ||
| - [ ] mkdir | ||
|
|
||
| **What is the correct command to make a folder in the terminal?** | ||
|
|
@@ -75,20 +75,20 @@ You can mark your choice by putting an `x` in the correct box | |
| - [ ] mv | ||
| - [ ] cd | ||
| - [ ] clear | ||
| - [ ] mkdir | ||
| - [x] mkdir | ||
|
|
||
| **What is the correct command to move a file in the terminal?** | ||
|
|
||
| - [ ] ls | ||
| - [ ] pwd | ||
| - [ ] mv | ||
| - [ ] cd | ||
| - [x] cd | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is mv command. |
||
| - [ ] clear | ||
| - [ ] mkdir | ||
|
|
||
| **What is the correct name for the part after the - in this command "ls -all"?** | ||
|
|
||
| - [ ] parameter | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the correct answer is "all", the last choice. |
||
| - [x] parameter | ||
| - [ ] extra | ||
| - [ ] function | ||
| - [ ] dash | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,11 @@ Hint: You should use `cd` and `ls`. | |
|
|
||
| #### 1) Answer | ||
|
|
||
| <!-- Write your answer here --> | ||
| pwd | ||
| ls | ||
| cd MyDocuments | ||
| ls | ||
| cd Scripts | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like you have not found script.js yet. Here is how I would do it: |
||
|
|
||
| ### 2) Find my Hotel Photo | ||
|
|
||
|
|
@@ -28,7 +32,15 @@ Next, I want to try and find the photo of my hotel from my holiday in July that | |
|
|
||
| #### 2) Answer | ||
|
|
||
| <!-- Write your answer here --> | ||
| cd.. | ||
| ls | ||
| cd Photos | ||
| ls | ||
| cd HolidayJuly | ||
| ls | ||
| cd Hotel | ||
| ls | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great work Junita! This helped me to correct my code. Here is how I did mine: cd.. |
||
|
|
||
| ### 3) Counting Script | ||
|
|
||
|
|
@@ -52,7 +64,13 @@ For this task, I want you to **stop** the counter when I have counted to 10. | |
|
|
||
| Copy the output of the script here | ||
|
|
||
| <!-- Write your answer here --> | ||
| ls | ||
| cd MyDocuments | ||
| ls | ||
| cd Scripts | ||
| ls | ||
| open count_to_100.sh | ||
| ctrl+c | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your steps are correct. However, in this question they asked us for our output. So I have answered as below: I have counted to 1 |
||
| ### 4) Quiz | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. However, all of the statements in this first question are also correct.