Back
CS-I ISP Journal Blog
J1002: Shell J1006: Source Control J1008: Merlin Mission Manager J1012: Alternative Base Addition J1013: Boolean Algebra J1016: Logic Composition J1017: Binary Adders J1151: Conditional and Flow Chart J1152: While Loops J1292: Useful Randomness

Journal J1002

Author: Tiffany Jiang

Date: 28-Aug-2022

I received assistance from: NO ONE

I assisted: NO ONE

 

Section 1

1.1: Name at least two other services that you personally use which are implemented using a Client/Server Model.

Ans: Discord and the search engine Google are both server-client models.


Section 2

2.1: It appears that both Jack Williams and John Williams can have a directory of the same name. Do you think the ability to have two different users create a directory of the same name is important? Why?

Ans: It's important for different people to be able to create directories under the same name (under a same grandparent directory) because they could be doing similar projects and use similar directory names.


Section 3

3.1: Why do you think the home directory has a special symbol to represent it?

Ans: The special figure could be there to help clarify that it's the home directory, and can be used to represent it as the name of home directory can be too long.


Section 4

4.1: After typing "cd Merlin," did the prompt change? If so, how? Why is this useful?

Ans: The prompt changed, as I've entered another directory. This is like a folder to contain files, and within a unique directory, I can create files with the same name as in other directories. This is also helpful in sorting information and files and such.


Section 5

5.1: What happens each time you press the 'up button'?

Ans: When I press the 'up' button in the home directory, the command I previously entered appeared.

5.2: What happens each time you press the 'down button'?

Ans: When I press the 'down' button in the home directory, the command I've just entered reappears.


Section 6

6.1: Was "Hello, World!" printed to the screen as before? If not, why not? What do you think happened to the text?

Ans: The text "hello world" didn't appear. Instead, I presume it was copied (redirected) to the out.txt file.


Section 7

7.1: How does the ls command differ from the tree command?

Ans: The ls command lists all the files and directories that occur after the current directory. Meanwhile, the tree command lists every single directory in a chart fashioned like a family tree.

7.2: How do you choose to use one over the other?

Ans: When I want to see every single directory and file branching out from my current directory, to see every option that's available, I'd use the 'tree' command. If I just wanted to just see, on a smaller scale, the directories and files that exist just in my current directory, then I'd use the 'ls' command.


Section 8

8.1: What do you think the argument to sleep specifies?

Ans: The sleep command could change in duration depending on the number typed behind it.

8.2: Are you able to prove your hypothesis? How?

Ans: I can prove my hypothesis by putting "sleep [x]" into the shell and timing how long it takes for the shell to "wake up" again.


Section 9

9.1: How is the behavior different from what you expected?

Ans: The behavior is not much different from what I expected.

9.2: What do you think it means to run a job in the background?

Ans: To run a job in the background means that you can run another job as it's running (in opposed to running a job in the foreground, where other jobs cannot also be run).

9.3: What do you think the number displayed in brackets specifies?

Ans: It seems like the number affects the number of seconds the "sleep" lasts.


Section 10

10.1: What do you observe as you execute the jobs command?

Ans: There's a list of the jobs that are currently running.

10.2: How do you explain your observations?

Ans: The command that initiated each job is listed, from most earliest to latest.

 

What did I learn? What is the "big idea"?

I learned to navigate and use the basic functions of the shell.

What challenges did I encounter?

Memorizing the commands and their applications I've learned so far has proved to be the most difficult part of this experience.

How could this experience be improved?

It seems to be very knowledgeful already, and is great at explaining information.