Skip to content
Snippets Groups Projects
Commit fce022d7 authored by ys554's avatar ys554
Browse files

lab 2 sheet

parent 71ba0f68
No related branches found
No related tags found
No related merge requests found
Q1.
./ys554-cs265-winter2019/lab02/heidi.list
./ys554-cs265-winter2019/lab02/eg.bash
./ys554-cs265-winter2019/.git/index
./ys554-cs265-winter2019/.git/objects/59/8394fe6d659069490a786c17ec32c7d55fe91a
./ys554-cs265-winter2019/.git/objects/4e/2ab0f310ca16208a85f5f11b8e621ecaefe7fa
./ys554-cs265-winter2019/.git/objects/71/ba0f6877fcdf5a3c675ca625aeb11b5aaf595d
./ys554-cs265-winter2019/.git/objects/ec/c6cbf85f474bc4279ca034aa3055dcd3315862
./ys554-cs265-winter2019/.git/objects/0c/9adffbbdab8e1cd589aa618e6afb4be49eb74a
./ys554-cs265-winter2019/.git/COMMIT_EDITMSG
./ys554-cs265-winter2019/.git/logs/HEAD
./ys554-cs265-winter2019/.git/logs/refs/heads/master
./ys554-cs265-winter2019/.git/logs/refs/remotes/origin/master
./ys554-cs265-winter2019/.git/refs/heads/master
./ys554-cs265-winter2019/.git/refs/remotes/origin/master
./ys554-cs265-winter2019/lab01/lab1
Q2.
find ./ -name *.bash
Q3.
./CS265/ys554-cs265-winter2019/lab02/tmp/gotMe.bash
./CS265/ys554-cs265-winter2019/lab02/eg.bash
Q4.
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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment