LX0-101 - CompTIA Linux+ [Powered by LPI] Exam 1

Go back to CompTIA

Example Questions

What operating system tools can be used to collect capacity planning data? (Choose two.) What Apache directive must you change when using inetd to control your Apache server? All of the following commands will execute the bash script /usr/local/bin/runme.sh EXCEPT: What is the purpose of the bash built-in export command? Which of the following commands will uninstall a package but leave its configuration files in case a package is re-installed? Which of the following commands an be used to perform a full text search on all available packages on Debian system? What configuration files on a Linux Server can be configured to share file systems with clients? Choose Two. Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar? Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. Which of the following commands, entered into a bash initialization file, will have bash recognize vi keystrokes after login? Which of the following tools are used to measure memory usage? (Choose three.) In the following output, what resource is the program being observed using the most? Which of the following command lines would an administrator use to restrict the GNU find command to searching a particular number of subdirectories? Which of the following Debian package system commands will list all partially installed packages and suggest how to get them correctly installed? For which of the following can the tee command be used? While editing a file in vi, an administrator realizes that the wrong file is being changed. Which of the following vi command sequences will allow the administrator to quit without saving any changes? The ensure that a running process continue to execute after an administrator logs out, the process should be started with which of the following commands? Your /etc/passwd file appears to have approximately 1/2 shadow passwords and 1/2 standard unix encrypted passwords. What utility would you most likely run again to fix this? Select the INFCORRECT statement regarding the LDIF file format The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. Which of the following does this indicate? An administrator is looking for an executable file foo. Which of the following commands would search for foo within directories set in the shell variable, PATH? Which of the following is the difference between the --remove and the --purge action with the dpkg command? Which of the following options will speed up traceroute for distant network queries? Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place? Which of the following are valid LDAP client command? (Choose two.) Which of the following commands will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd? Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt? What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2? ) Which of the following does the Filesystem Hierarchy Standard enable? (Select TWO). What information does the file modules.dep provide? Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." . Which of the following commands will remove the directory? To prevent a specific user from scheduling tasks with at, what should the administrator do? The output for the command ifconfigeth0 is shown below: Eth0 Link encap:Ethernet HWaddr 00:0C:29:CB:FA:30 inetaddr:192.168.246.11 Bcast:192.168.246.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metrlel RX packets:4721 errorsrO dropped:0 overruns:0 frame:0 TX packets:3216errors:0dropped:0overruns:0 carrier:0 collisions^) txqueuelen:1000 RX bytes:445184 (434.7 Kb) TX bytes:512968 (500.9 Kb) lnterrupt:185 Base address:0xl080 Which of the following commands should be used in a bash script that needs a variable containing the IP address of the eth0 interface? What does the LDIF acronym stand for? While editing a file in vi, you realize that you are changing the wrong file. What vi command sequence will allow you to quit without saving your changes? What is the purpose of the xargs command? You've just rebooted your server. Users complain that the server is refusing secure connections. Which of the following is most likely causing this problem? Which backup method will require the minimum tapes to restore? In order to allow a Win95 host to resolve the name of and map network drives to your Linux server, what services should be running? Choose Two. Which Debian package system command will list all partially installed packages and suggest how to get them correctly installed? An administrator wants the default permissions for their files to be -rw-r-----. How must the administrator set umask? A system is running out of swap space. To initialise 5GB of additional swap space, which combination of commands should be used? Which of the following commands will display the last 30 lines of /var/log/bigd.log as well as new content as it is appended to the file by another process? What command changes the priority of the process running with process id of 12345 to the highest priority? You have a standard Apache web server installation and want to make it respond to requests on port 8088. To do this, what configuration file do you need to change? In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)? Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes? Which of the following directories contains additional information about installed packages? Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server? In the following output, what is the 5 minute load average for the system? [[email protected] ~]# uptime 12:10:05 up 18 days, 19:00, 2 users, load average: 0.47, 24.71, 35.31 An administrator wishes to kill a process with a PID of 123. Which of the following commands will allow the process to "clean up" before exiting?

Study Guides