Candidates are encouraged to use this document to prepare for the CompTIA Linux+ LX0-104 exam. In order to receive CompTIA Linux+ certification, a candidate must pass two exams: CompTIA Linux+ LX0-103 and CompTIA Linux+ LX The CompTIA Linux+ certification offers a framework for acquiring working knowledge of Linux for IT professionals working as junior-level systems administrators, as well as those working in web and software development. Successful candidates will have the following skills: Work at the Linux command line Perform easy maintenance tasks including assisting users, adding users to a larger system, executing backup & restore and shutdown & reboot Install and configure a workstation (including X) and connect it to a LAN, or a stand-alone PC via modem to the Internet in the design of capture solutions, while addressing security requirements
What is true regarding the statement beginning with #! that is found in the first line of a script? A. It prevents the script from being executed until the ! is removed. B. It specifies the path and the arguments of the interpreter used to run the script. C. It is a comment that is ignored by the script. D. It specifies the character encoding of the script. Answer: B
Which Bash option prevents a user from accidentally overwriting a file with a ">"? A. set -o safe B. set -o noglob C. set -o noclobber D. set -o append E. set -o nooverwrite Answer: C
Which of the following commands prints the exit value of the most recently executed program in Bash? A. echo $? B. echo $# C. echo $exit D. echo $status E. echo $& Answer: A
Which of the following SQL statements will select the fields name and address from the contacts table? A. SELECT (name, address) FROM contacts; B. SELECT (name address) FROM contacts; C. SELECT name, address FROM contacts; D. SELECT name address FROM contacts; Answer: C
Which of the following configuration files should be modified to globally set shell variables for all users? A. /etc/bashrc B. /etc/profile C. ~/.bash_profile D. /etc/.bashrc Answer: B