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
22 changes: 11 additions & 11 deletions MyDocuments/Quiz/QUIZ.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ 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 ..
Expand All @@ -21,20 +21,20 @@ You can mark your choice by putting an `x` in the correct box
- [ ] cd ..
- [ ] cd ~
- [ ] mv ..
- [ ] cd ./
- [x] cd ./

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HadikaMalik take another look at this one (and feel free to try it out locally!)

cd ./ just leaves me in the same directory as I'm already in ➡️
Which option could move me up a directory? ⬆️


**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 @@ -91,5 +91,5 @@ You can mark your choice by putting an `x` in the correct box
- [ ] parameter
- [ ] extra
- [ ] function
- [ ] dash
- [x] dash
- [ ] all
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Hint: You should use `cd` and `ls`.

#### 1) Answer

<!-- Write your answer here -->
<!-- Write your answer here -->
// cd MyDocuments/ then ls to see what files are in mydocuments, then cd Scripts/

### 2) Find my Hotel Photo

Expand All @@ -29,6 +30,7 @@ Next, I want to try and find the photo of my hotel from my holiday in July that
#### 2) Answer

<!-- Write your answer here -->
// to chnage from scripts to photos, do cd ../ and then do cd Photos/

### 3) Counting Script

Expand All @@ -54,6 +56,21 @@ Copy the output of the script here

<!-- Write your answer here -->

hadika@ubuntu-22:~/Documents/CYF /JS1/week 3/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
I have counted to 10
You should have used Ctrl+C to end the script by now! I have counted to 11!
You should have used Ctrl+C to end the script by now! I have counted to 12!
hadika@ubuntu-22:~/Documents/CYF /JS1/week 3/Terminal-Coursework-Week1/MyDocuments/Scripts$

### 4) Quiz

In this directory you'll find a quick quiz for you to complete
Expand Down