Git Product home page Git Product logo

terminal-coursework-week1's Introduction

Terminal Coursework

In this coursework we want to test what you've learnt in the previous coursework.

Tasks

1) Find my script

In this repository you'll find MyDocuments - this is all the documents that I use on my laptop.

I need to find the script.js file that is a part of MyFirstWebsite however you are not allowed to use a GUI, you must use Command Line and the Terminal.

What commands would I need to change directory to the directory containing script.js? In the section below, write all the commands you used.

Hint: You should use cd and ls.

1) Answer

  1. git clone https://github.com/CodeYourFuture/Terminal-Coursework-Week1
  2. cd Terminal-Coursework-Week1
  3. cd MyDocuments
  4. ls
  5. cd Projects
  6. ls
  7. cd MyFirstWebsite
  8. ls
  9. cd scripts
  10. ls
  11. The answer is Terminal-Coursework-Week1/MyDocuments/Projects/MyFirstWebsite/scripts/script.js

2) Find my Hotel Photo

Great work!

Next, I want to try and find the photo of my hotel from my holiday in July that I want to send to a friend.

Note: You should do this by moving from where you are after completing the previous task.

2) Answer

  1. cd ..
  2. cd ..
  3. cd ..
  4. ls
  5. cd Photos
  6. ls
  7. cd HolidayJuly
  8. ls
  9. cd Hotel
  10. ls
  11. The answer is Terminal-Coursework-Week1/MyDocuments/Photos/HolidayJuly/Hotel/cyf.png

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

cyf.png [berkeli@berkeli-81bn Hotel]$ cd .. [berkeli@berkeli-81bn HolidayJuly]$ cd .. [berkeli@berkeli-81bn Photos]$ cd .. [berkeli@berkeli-81bn MyDocuments]$ cd scripts bash: cd: scripts: No such file or directory [berkeli@berkeli-81bn MyDocuments]$ cd Scripts [berkeli@berkeli-81bn 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 ^C[berkeli@berkeli-81bn Scripts]$

4) Quiz

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

/MyDocuments/Quiz

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

code QUIZ.md

when you're in the correct directory.

terminal-coursework-week1's People

Contributors

chrisowen101 avatar illicitonion avatar berkeli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.