From 4a1640d6a77cae023154cffa5df3c06e9d9e37d4 Mon Sep 17 00:00:00 2001 From: zeliha pala Date: Fri, 24 Nov 2023 17:50:13 +0000 Subject: [PATCH 1/2] quiz done --- MyDocuments/Quiz/QUIZ.md | 22 +++++++++++----------- MyDocuments/Scripts/count_to_100.sh | 3 +++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/MyDocuments/Quiz/QUIZ.md b/MyDocuments/Quiz/QUIZ.md index f9a4853..08cd22e 100644 --- a/MyDocuments/Quiz/QUIZ.md +++ b/MyDocuments/Quiz/QUIZ.md @@ -5,20 +5,20 @@ 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 +- [ x] 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 **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 ./ @@ -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 @@ -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,13 +75,13 @@ 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 @@ -92,4 +92,4 @@ You can mark your choice by putting an `x` in the correct box - [ ] extra - [ ] function - [ ] dash -- [ ] all +- [ x] all diff --git a/MyDocuments/Scripts/count_to_100.sh b/MyDocuments/Scripts/count_to_100.sh index 1a36bbd..27b81b2 100755 --- a/MyDocuments/Scripts/count_to_100.sh +++ b/MyDocuments/Scripts/count_to_100.sh @@ -9,3 +9,6 @@ do fi sleep 0.2s done + +// MY answer; +// ~/Desktop/CYF/All projects/Terminal-Coursework-Week1/MyDocuments/Scripts$ \ No newline at end of file From 86ca416b634bee3e21a194b928be560bebd117ea Mon Sep 17 00:00:00 2001 From: zeliha pala Date: Fri, 24 Nov 2023 17:50:49 +0000 Subject: [PATCH 2/2] exercises done --- MyDocuments/Scripts/count_to_100.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/MyDocuments/Scripts/count_to_100.sh b/MyDocuments/Scripts/count_to_100.sh index 27b81b2..df1cf6a 100755 --- a/MyDocuments/Scripts/count_to_100.sh +++ b/MyDocuments/Scripts/count_to_100.sh @@ -11,4 +11,18 @@ do done // MY answer; -// ~/Desktop/CYF/All projects/Terminal-Coursework-Week1/MyDocuments/Scripts$ \ No newline at end of file +// 1 ~/Desktop/CYF/All projects/Terminal-Coursework-Week1/MyDocuments/Scripts$ + +// 2 cd ../../../Photos/HolidayJuly/Hotel +// ls + +// ^Ccodeyourfuture@codeyourfuture-HP-EliteBook-840-G3:~/Desktop/CYF/All projects/Terminal-Coursework-Week1/MyDocuments/Scripts$ ./count_to_100.sh +I have counted to 1 +I have counted to 2 +I have counted to 3 +I have counted to 4 +I have counted to 5 +I have counted to 6 +I have counted to 7 +I have counted to 8 +I have counted to 9 \ No newline at end of file