1. Which command makes the shell variable named VARIABLE visible to subshells?
A) A. export $VARIABLE B) B. export VARIABLE C) C. set $VARIABLE D) D. set VARIABLE E) E. env VARIABLE
2. What output will the command seq 10 produce?
A) A. A continuous stream of numbers increasing in increments of 10 until stopped. B) B. The numbers 1 through 10 with one number per line. C) C. The numbers 0 through 9 with one number per line. D) D. The number 10 to standard output.
3. Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)(Select 2answers)
A) A. ~/.bashconf B) B. ~/.bashrc C) C. ~/.bashdefaults D) D. ~/.bash_etc E) E. ~/.bash_profile
4. After issuing:function myfunction { echo $1 $2 ; }in Bash, which output does:myfunction A B CProduce?
A) A. A B B) B. A B C C) C. A C D) D. B C E) E. C B A
5. Which of the following commands puts the output of the command date into the shell variable mydate?
A) A. mydate='$(date)' B) B. mydate='exec date' C) C. mydate='$((date))' D) D. mydate='date' E) E. mydate='${date}'
Leave a comment