Monday 30 October 2017

CompTIA LX0-104 Question Answer

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO answers.)

A. ~/.bashconf
B. ~/.bashrc
C. ~/.bashdefaults
D. ~/.bash_etc
E. ~/.bash_profile

Answer: BE


After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?


A. A B
B. A B C
C. A C
D. B C
E. C B A

Answer: A