Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Ubuntu, what are the commands to produce the following outputs for questio

ID: 3742144 • Letter: U

Question

Using Ubuntu, what are the commands to produce the following outputs for question 1.

for question 2, please explain

1.) Assume you have made the following variable assignment: person-zach How can you produce longutputs on the scren? a) zach b) $persor b) zach" Take a screenshot (#3-4) which clearly shows the command you use and the result. a) "$person oot buntu File Edit View Search Terminal Help root@ubuntu:~# > line 2" varl-line 1 root@ubuntu:-# echo $varil 2.) Set varl to the value as shown in the right figure. What's the difference between the following two statements? How many arguments does each echo command see? echo "$varl" echo $varl

Explanation / Answer

If you post more than 1 question, as per chegg guidelines I have to solve only first question.

Ques 1.

(a)

# assign the value zach to variable porson

person="zach"

# display the value of variable person using echo command

echo $person

Sample Output

zach

(b)

# assign the value zach to variable porson

person="zach"

# display the name of variable person using echo command

# use to escape the $

echo $person

Sample Output

$person

(c)

# assign the value zach to variable porson

person="zach"

# display the name of variable person using echo command

# use to escape the "

echo ""$person""

Sample Output

"zach"

(d)

# assign the value zach to variable porson

person="zach"

# display the name of variable person using echo command

# use to escape the " and $

echo ""$person""

Sample output

"$person"

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote