Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions MyDocuments/Quiz/QUIZ.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ You can mark your choice by putting an `x` in the correct box

**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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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?**
Expand All @@ -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
Expand All @@ -92,4 +92,4 @@ You can mark your choice by putting an `x` in the correct box
- [ ] extra
- [ ] function
- [ ] dash
- [ ] all
- [x] all
46 changes: 38 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ Hint: You should use `cd` and `ls`.

#### 1) Answer

<!-- Write your answer here -->

685 pwd
686 ls
687 cd MyDocuments
688 ls
689 cd Scripts
690 ls
691 cd ..
692 cd Projects
693 ls
694 cd MyFirstWebsite
695 ls
696 cd scripts
697 ls

### 2) Find my Hotel Photo

Expand All @@ -28,31 +41,48 @@ Next, I want to try and find the photo of my hotel from my holiday in July that

#### 2) Answer

<!-- Write your answer here -->
695 cd ..
696 ls
697 cd ..
698 ls
699 cd ..
700 ls
701 cd Photos
702 ls
703 cd HolidayJuly
704 ls
705 cd Hotel
706 ls

### 3) Counting Script

Next, I want you to run the script in this directory

```
/MyDocuments/Scripts/
```

You can run the script by typing

```

./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.



#### 3) Answer

Copy the output of the script here

<!-- Write your answer here -->
685 ls
686 cd MyDocuments
687 ls
688 cd Scripts
689 ls
690 open count_to_100.sh

press Ctrl+ C


### 4) Quiz

Expand Down