97 499 2960 breadIsDangerous.txt, meaning the file has 97 lines, 499 words, and 2960 bytes.
Q5. grep the breadIsDangerous.txt | wc -l
Q6. The color of the title change from black to green. I also got a new file called spellExample.bak
Q7. It first shows a revised version of spellExample file and compares to the old file which is stored in spellExample.bak
Q8. Nothing happens.
Q9. du * | sort -n -r | head -n 8
Q10. After the first command, %? will print 0("success" return value) because the string "dough" is in the text file. However, the second command will throw false, since there is no string called "uniqueString" in the file. Therefore, the value of $? will be 1. After the third command, which also doesn't exist, $? will adain throw 1, which will make the overall value 2.
Q11.1.
** NOTE
When I tried `git push --set-upstream origin master` on lab2-git directory, I got an error message saying:
error: src refspec master does not match any.
error: failed to push some refs to '/home/ys554/CS265/lab2-git-bare/'
However, to recover my answers, I would use git revert command.
Q11.2. Maybe I can check the version and see if there were previous versions..? Not 100% sure.