kea-classrooms / bbs-NichlasMau

bbs-NichlasMau created by GitHub Classroom
0 stars 0 forks source link

Make a script #6

Open NichlasMau opened 1 year ago

NichlasMau commented 1 year ago

Get rid of the sample files

Let's get rid of the sample files - so we can create them again.

Make sure your working directory is the root of the repository where the samples folder is - change directory if you have to. Now delete the samples folder, and everything in it using rm (it needs a few switches to work - but you'll figure it out).

NichlasMau commented 1 year ago

1 In order to see which directory it is in, you have to write "pwd", after this it will show you where it is located.

2 In order to remove a directory you have to write "rm" which is the remove command, but you also need to add "-r" and the directory you want to remove, in my case it's "samples/"

3 To create a file, you have to write "cat >" and then the same.

5 In order to run code you need to write "Bash" and then the files name, in this case it's "setup-samples.sh".

6 I wrote the question into google, and found a StackOverFlow artical which helped me with the problem.