From 536aa5949ec53de565902d0d622bc82b615ad514 Mon Sep 17 00:00:00 2001 From: Fathi Kahin Date: Sat, 25 Nov 2023 14:09:00 +0000 Subject: [PATCH 1/5] answer 1 completed --- MyDocuments/Scripts/count_to_100.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/MyDocuments/Scripts/count_to_100.sh b/MyDocuments/Scripts/count_to_100.sh index 1a36bbd..82996b2 100755 --- a/MyDocuments/Scripts/count_to_100.sh +++ b/MyDocuments/Scripts/count_to_100.sh @@ -9,3 +9,4 @@ do fi sleep 0.2s done + From 017633d32696047753d0048645b575cc54c0105b Mon Sep 17 00:00:00 2001 From: Fathi Kahin Date: Sat, 25 Nov 2023 14:13:34 +0000 Subject: [PATCH 2/5] answer 2 Only CYF logo found --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2cab9a4..625bd23 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,13 @@ What commands would I need to change directory to the directory containing `scri Hint: You should use `cd` and `ls`. + #### 1) Answer - + ### 2) Find my Hotel Photo + Great work! From 25098c8e2b509c91c48940285aca4cc724978de0 Mon Sep 17 00:00:00 2001 From: Fathi Kahin Date: Sat, 25 Nov 2023 15:55:28 +0000 Subject: [PATCH 3/5] Hotel image ===0 updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 625bd23..366b9e3 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Hint: You should use `cd` and `ls`. ### 2) Find my Hotel Photo - + Great work! From 1c07b8b06e086f894d355bd1e91be4297efe3ccf Mon Sep 17 00:00:00 2001 From: Fathi Kahin Date: Sat, 25 Nov 2023 16:14:34 +0000 Subject: [PATCH 4/5] It counted to 100 and I stoped it at 10. --- MyDocuments/Scripts/count_to_100.sh | 2 +- README.md | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/MyDocuments/Scripts/count_to_100.sh b/MyDocuments/Scripts/count_to_100.sh index 82996b2..2fdbcf9 100755 --- a/MyDocuments/Scripts/count_to_100.sh +++ b/MyDocuments/Scripts/count_to_100.sh @@ -1,5 +1,5 @@ ## sleep in bash for loop ## -for i in {1..100} +for i in {1..10} do if [ $i -lt 11 ] then diff --git a/README.md b/README.md index 366b9e3..f08da4a 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Next, I want to try and find the photo of my hotel from my holiday in July that #### 2) Answer - + ### 3) Counting Script @@ -54,7 +54,28 @@ For this task, I want you to **stop** the counter when I have counted to 10. Copy the output of the script here - + ### 4) Quiz From cf2c4d113cab6d03ef1fa183053eb9f6d458711f Mon Sep 17 00:00:00 2001 From: Fathi Kahin Date: Sat, 25 Nov 2023 16:29:11 +0000 Subject: [PATCH 5/5] quiz completed --- MyDocuments/Quiz/QUIZ.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/MyDocuments/Quiz/QUIZ.md b/MyDocuments/Quiz/QUIZ.md index f9a4853..5b54b7e 100644 --- a/MyDocuments/Quiz/QUIZ.md +++ b/MyDocuments/Quiz/QUIZ.md @@ -4,21 +4,21 @@ You can mark your choice by putting an `x` in the correct box **Which of these is incorrect?** -- [ ] 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 is an interface that allows you to access the command line +- [x] It can be much faster to complete some tasks using a Terminal than with a GUI +- [x] You have access to many more commands and scripts on the Terminal than with 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 - [ ] mv Projects -- [ ] cd ..Projects +- [x] cd ..Projects - [ ] mv .. **What is the correct way to move up a directory?** -- [ ] cd .. +- [x] cd .. - [ ] cd ~ - [ ] mv .. - [ ] cd ./ @@ -26,7 +26,7 @@ You can mark your choice by putting an `x` in the correct box **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 @@ -34,7 +34,7 @@ You can mark your choice by putting an `x` in the correct box **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 @@ -64,8 +64,7 @@ You can mark your choice by putting an `x` in the correct box - [ ] ls - [ ] pwd - [ ] mv -- [ ] cd -- [ ] clear +- [x] clear - [ ] mkdir **What is the correct command to make a folder in the terminal?** @@ -75,20 +74,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 +- [x] mv - [ ] cd - [ ] clear - [ ] mkdir **What is the correct name for the part after the - in this command "ls -all"?** -- [ ] parameter +- [x] parameter - [ ] extra - [ ] function - [ ] dash