Coder Social home page Coder Social logo

sba-command-line-git's Introduction

sba-command-line-git

This assessment contains 2 parts. Each part is explained below. You will have 60 minutes to complete the entire assessment (Parts 1 and 2).

Part One: Git Basics

Please follow the directions the below. You will be assessed on the completion of each step.

  1. Fork a copy of this repository to your GitHub account.
  2. Clone the forked copy to your computer.
  3. Add an index.html file to the root directory of the project.
  4. Open the index.html file in the nano text editor.
  5. Add the following code to your index.html file.
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>HTML 5 Boilerplate</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <h1>Command Line and Git SBA</h1>
	<script src="index.js"></script>
  </body>
</html>

  1. Add the changes to the staging area.
  2. Save the the changes to your local repository. Include as your message the full command you used to create the index.html file in step 3.
  3. Send the changes to your remote repository.
  4. Create a pull request from your repository's main branch to this repository's main branch.

Part Two: Command Line

Please follow the directions the below. You will be assessed on the completion of each step.

Setup:

  1. You will need to create a replit.com account to complete this portion. This video provides directions: https://www.youtube.com/watch?v=ZAC0TQEU5gI
  2. Open up our replit teams page and navigate to the Command Line and Git SBA project
  3. Click on the "Console" tab to run commands in a way similar to Git Bash or Terminal
  4. Format your commands with single spaces between commands, options, and arguments. For example, cp file1.txt file2.txt my_directory ls -a
  5. You MUST use command line commands to complete all steps otherwise we will not be able to give you credit for all steps.

Use the appropriate commands complete the steps listed below.

  1. Create a folder named folder1
  2. Navigate to folder1
  3. Add a file named file1.txt to folder1
  4. Use text commands to add the following text to file1.txt: "grapes\napples\noranges\nlimes\nlemons\napples\ngrapes\npears\nberries\nlimes" There should be one item per line in the file. Hint: You will need to use -e along with your command to ensure each item is on separate line (ex. command -e "text here")
  5. Check the contents of file1.txt
  6. From your current location in the file system, create a folder named folder2 that is a sibling of folder1 using a single command
  7. From your current location in the file system, Navigate to folder2using a single command
  8. Add a file named file2.txt in folder2
  9. Use text commands to add the following text to file2.txt: "grapes\ngrapes\napples\noranges\nlimes\nlimes\nlemons\nlemons\ngrapes\npears\npears\nberries" There should be one item per line in the file. Hint: you will need to use -e along with your command to ensure each item is on separate line (ex. command -e "text here")
  10. Run the command: exit in the console
  11. Click the Shell tab. Located next to the Console tab in your repl
  12. Run the command cat ~/.bash_history > my-history.txt
  13. Check that my-history.txt contains your complete command history
  14. Take a screenshot of the Console showing the commands you used to complete the assignment
  15. Submit your screenshot to the Canvas submission page for this session
  16. Submit your replit project using the submit button on replit

sba-command-line-git's People

Contributors

phillip-generation avatar roesnera avatar stsalcido 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.