From 6f7629ac775e5bcff27eb25d0e62c6432fd3b521 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Sun, 18 Sep 2022 15:41:04 -0400 Subject: [PATCH 01/12] Update README.md --- README.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 91df6b1..525bd12 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ 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 repository. -4. Open the repository in VS Code. -5. Add the following code to your `index.html` file +4. Open the index.html file in the nano text editor. +5. Add the following code to your `index.html` file. ```` @@ -48,17 +48,15 @@ 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. Alphabetize the contents of `file1.txt` and add the alphabetized content to a new file named `sorted-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 `folder2`using 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"` 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. Filter out duplicate adjacent lines from from `file2.txt` and add the filtered list to a new file named `unique-file2.txt` -11. Run the command: `exit` in the Shell -12. Click the `Shell` tab. Located next to the `Console` tab in your repl -13. Run the command `cat ~/.bash_history > my-history.txt` -14. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) -15. Take a screenshot of the Console showing the commands you used to complete the assignment -16. Submit your link to the Canvas submission page for this session -17. Submit your screenshot to the Canvas submission page for this session +5. From your current location in the file system, create a folder named `folder2` that is a **_sibling_** of `folder1` using a single command +6. From your current location in the file system, Navigate to `folder2`using a single command +7. Add a file named `file2.txt` in `folder2` +8. Use text commands to add the following text to `file2.txt`: `"grapes\ngrapes\napples\noranges\nlimes\nlimes\nlemons\nlemons\ngrapes\npears\npears\nberries"` Hint: you will need to use -e along with your command to ensure each item is on separate line (ex. `command -e "text here"`) +9. Run the command: `exit` in the Shell +10. Click the `Shell` tab. Located next to the `Console` tab in your repl +11. Run the command `cat ~/.bash_history > my-history.txt` +12. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) +13. Take a screenshot of the Console showing the commands you used to complete the assignment +14. Submit your link to the Canvas submission page for this session +15. Submit your screenshot to the Canvas submission page for this session From ab60065aab4f380d15e602a92ac64c03df6af8c8 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:41:28 -0500 Subject: [PATCH 02/12] Change a word repository -> project --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 525bd12..e42b447 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ 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 repository. +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. From e44d600c67aaabea602c78a18cc3d8db953a6cc5 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:44:53 -0500 Subject: [PATCH 03/12] Changes language on part 1 step 9 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e42b447..bc85903 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ 6. Add the changes to the staging area. 7. 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. 8. Send the changes to your remote repository. -9. Create a pull request +9. Create a pull request from your repository's main branch to this repository's main branch. ## Part Two: Command Line From 5d92dbb3c0f978068f33baf02eb42f4e23e53d6c Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:49:07 -0500 Subject: [PATCH 04/12] Accessibility word change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc85903..5fe642a 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ 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. Start a new "Bash" repl 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. Ex. `cp file1.txt file2.txt my_directory` `ls -a` +4. Format your commands with single spaces between commands, options, and arguments. For example, `cp file1.txt file2.txt my_directory` `ls -a` ### Use the appropriate commands complete the steps listed below. From dca1176c7c7492f6e17c5cc4205ebdb7cadfcf25 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:51:10 -0500 Subject: [PATCH 05/12] Add clarifier regarding command line commands --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5fe642a..9bc3538 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ 2. Start a new "Bash" repl 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. From 77918c1c2e95eab9b0413484463a47e2d87addae Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 10:54:17 -0500 Subject: [PATCH 06/12] Edits part 2 step 4 for clarity --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9bc3538..9484dbc 100644 --- a/README.md +++ b/README.md @@ -48,16 +48,17 @@ 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. From your current location in the file system, create a folder named `folder2` that is a **_sibling_** of `folder1` using a single command -6. From your current location in the file system, Navigate to `folder2`using a single command -7. Add a file named `file2.txt` in `folder2` -8. Use text commands to add the following text to `file2.txt`: `"grapes\ngrapes\napples\noranges\nlimes\nlimes\nlemons\nlemons\ngrapes\npears\npears\nberries"` Hint: you will need to use -e along with your command to ensure each item is on separate line (ex. `command -e "text here"`) -9. Run the command: `exit` in the Shell -10. Click the `Shell` tab. Located next to the `Console` tab in your repl -11. Run the command `cat ~/.bash_history > my-history.txt` -12. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) -13. Take a screenshot of the Console showing the commands you used to complete the assignment -14. Submit your link to the Canvas submission page for this session -15. Submit your screenshot to the Canvas submission page for this session +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 `folder2`using 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"` 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 Shell +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. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) +14. Take a screenshot of the Console showing the commands you used to complete the assignment +15. Submit your link to the Canvas submission page for this session +16. Submit your screenshot to the Canvas submission page for this session From 362e79debc3293b0f8da0d10d484d70fc7f9d915 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:00:02 -0500 Subject: [PATCH 07/12] Changes word in part 2 step 10, adds step 13 --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9484dbc..b42f903 100644 --- a/README.md +++ b/README.md @@ -54,11 +54,12 @@ 7. From your current location in the file system, Navigate to `folder2`using 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"` 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 Shell +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. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) -14. Take a screenshot of the Console showing the commands you used to complete the assignment -15. Submit your link to the Canvas submission page for this session -16. Submit your screenshot to the Canvas submission page for this session +13. Check that `my-history.txt` contains your complete command history +14. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) +15. Take a screenshot of the Console showing the commands you used to complete the assignment +16. Submit your link to the Canvas submission page for this session +17. Submit your screenshot to the Canvas submission page for this session From 3a090a3eff0181bd1e421268a120f19d7faa46cf Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:01:34 -0500 Subject: [PATCH 08/12] Changes part 2 steps 16, 17 --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b42f903..b2a6eb2 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,7 @@ 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. Use the "Invite" button in the top right of the replit.com window to generate a sharable link (as showin in [video](https://www.youtube.com/watch?v=ZAC0TQEU5gI) linked here and above) 15. Take a screenshot of the Console showing the commands you used to complete the assignment -16. Submit your link to the Canvas submission page for this session -17. Submit your screenshot to the Canvas submission page for this session +16. Submit your screenshot to the Canvas submission page for this session +17. Submit your replit project using the submit button on replit From 54c13d347b40ed591e9983b2192434e4f5842009 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:04:48 -0500 Subject: [PATCH 09/12] Changes part 2 setup step 2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2a6eb2..0fd0759 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ ### 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. Start a new "Bash" repl +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. From 2b270376b8e14fc55eb42385c54ce0ef8887d881 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:07:01 -0500 Subject: [PATCH 10/12] Duplicates bold part 2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fd0759..351fc04 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ 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 `folder2`using 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"` Hint: you will need to use -e along with your command to ensure each item is on separate line (ex. `command -e "text here"`) +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` From 0900a137e2f985b853a795f0f256d61507a963a8 Mon Sep 17 00:00:00 2001 From: Adam Roesner <67762559+roesnera@users.noreply.github.com> Date: Thu, 16 Mar 2023 16:45:19 -0400 Subject: [PATCH 11/12] Adds admonishment to not run in replit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 351fc04..e15739f 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ 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. +PLEASE NOTE: There is a button that says "run" at the top of the page. DO NOT press this button as it will clear your commands from your command history! ### Use the appropriate commands complete the steps listed below. From 34d48ff1d0668f2caaf5d6aef70e979885f26ee2 Mon Sep 17 00:00:00 2001 From: Andualem22 Date: Mon, 20 Mar 2023 19:38:03 -0500 Subject: [PATCH 12/12] I used nano index.html and after i write HTML i saved it and exit from nano --- .DS_Store | Bin 0 -> 6148 bytes index.html | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .DS_Store create mode 100644 index.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..11e487c7e811265b1918dbe2cc7bbc9e2e5326a1 GIT binary patch literal 6148 zcmeHKJ5Iwu5Sdq|SgsjF(fuIGrAmmi0_{pb5tH@`gQceA&fpZV>5>)8eg)UZ$>6bJ=E zfl%OIDuA9XR-PNi8VZC0p}c- zu?q!4fj^}H7uB?y;FY|$_FhhUZGzvzzYVoojzwEBP+KuJ(uyxybxE#~&yJ0u(h*lW PFn$C?m#|RaHx&2+4cRKs literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..bbb8310 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + HTML 5 Boilerplate + + + +

Command Line and Git SBA

+ + + +