Know Your Computer
“Know Your Computer” focuses on how to perform regular tasks on your computer. In this workshop you will use basic Linux commands in the terminal. The goal is to reduce your fear of using the terminal.
Pre-requisite
To be able to do this workshop you will need a computer with a Linux shell running on it. If you already have a Mac or an Ubuntu operating system or any other Linux distribution running on your laptop, then you are fine. If your laptop is running on Windows operating system, download and install Git Bash for Windows. Code Your Future does not support Windows, so you must install or dual boot Linux to take our course. But to do this workshop, you can just use Git Bash. Once installed, open git bash and you should be able to perform the tasks below.
Tasks
You must use the terminal and Linux commands to complete each challenge. You must not use your GUI! Hands off the mouse! π±οΈ
- Create a folder called
my-shoppinginside your Documents folder. - Then create a file called
my-list.txtinsidemy-shoppingfolder. - Write the following items to
my-list.txtfile:
1. Tea
2. Pasta
3. Coffee
4. Milk- Create a new folder called
my-new-shoppinginside your Documents folder. - Now move
my-list.txtfrom yourmy-shoppingfolder to yourmy-new-shoppingfolder. Yourmy-shoppingfolder should be empty after this step. - Copy
my-list.txtfrom yourmy-new-shoppingfolder back to yourmy-shoppingfolder. After this step, both folders should contain a file calledmy-list.txt. - Now add the following line to
my-list.txtfile that is insidemy-new-shoppingfolder:
5. Sugar - Display the content of
my-list.txtfile insidemy-shoppingand the one insidemy-new-shopping.my-list.txtfile in my-shopping folder must have 4 items while the one insidemy-new-shoppingfolder must have 5 items.
Resources
To help with this here are resources you can refer to: freecodecamp.com, Guru99, CLI-Treasure-Hunt.