Do a manpage or web search for let and its implications when setting variables and create a new local variable named my_val whose value is 10 — as a result of adding 5 and 5
Now create another variable named your_val whose value is 5 — as a result of dividing the value of my_val into 2
The result of a command in a variable? Of course, that is possible; it is called command substitution. Investigate it and study the following function named music_info:
music_info(){
latest_music=`ls -l1t ~/Music | head -n 6`
echo -e "Your latest 5 music files:\n$latest_music"
}
The result of the command ls -l1t ~/Music | head -n 6 becomes the value of the variable latest_music. Then the variable latest_music is referenced in the echo command (which outputs the total number of bytes occupied by the Music folder and the latest five music files stored in the Music folder — one per line).
not sure but like just declare it like this my_val=5+5 or maby my_val=(5+5)
similar to the one above but to avoid escape char your_val=($my_val/2)
Homework 2
option B would just be a string or faulty bash command and A would indicate that hole thing is multiple variables witch they are not but C is my pick becuse it basically turns multiple comands on to one