From 5e130ed760e0813f686068bda58802ec50079e72 Mon Sep 17 00:00:00 2001 From: anuthapaliy <113211321+anuthapaliy@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:23:28 +0000 Subject: [PATCH] Quiz Completed --- MyDocuments/Quiz/QUIZ.md | 22 +++++++++++----------- README.md | 28 ++++++++++++++++++++++------ 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/MyDocuments/Quiz/QUIZ.md b/MyDocuments/Quiz/QUIZ.md index f9a4853..142d8dc 100644 --- a/MyDocuments/Quiz/QUIZ.md +++ b/MyDocuments/Quiz/QUIZ.md @@ -7,18 +7,18 @@ 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 ./ @@ -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 @@ -35,7 +35,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 -- [ ] ctrl+c +- [ x] ctrl+c - [ ] ctrl+shift or cmd+shift - [ ] The enter key - [ ] The escape 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 +- [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 diff --git a/README.md b/README.md index 2cab9a4..68ea1bc 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Hint: You should use `cd` and `ls`. #### 1) Answer - +cd-MyDocument, ls cd projects, ls cd MyFirstWebsite, ls cd scripts ls ### 2) Find my Hotel Photo @@ -28,7 +28,14 @@ Next, I want to try and find the photo of my hotel from my holiday in July that #### 2) Answer - +cd-photos, + ls, + cd HolidayJuly, + ls, + cd Hotel + ls + cd cyf.png + ### 3) Counting Script @@ -38,21 +45,30 @@ Next, I want you to run the script in this directory /MyDocuments/Scripts/ ``` -You can run the script by typing ``` ./count_to_100.sh ``` +cd photos +ls, +cd HolidayJuly +ls +cd Scripts +ls +cd $ count_to_100.sh + + + when you're in the correct directory. For this task, I want you to **stop** the counter when I have counted to 10. +ctrl + c #### 3) Answer Copy the output of the script here - ### 4) Quiz @@ -64,8 +80,8 @@ In this directory you'll find a quick quiz for you to complete You should open the quiz in Visual Studio Code and complete it. You can do this either by opening this project in VSCode or by running the command -```sh + code QUIZ.md -``` + when you're in the correct directory.