LPI Certification / CompTIA Linux+ Practice Test - Question List

Select how would you like to study

86. You want to configure your Linux firewall to block all network traffic addressed to the Telnet service on the local system. Which of the following commands should you use?
  1. iptables -t filter -A INPUT -s 0/0 -p tcp -dport 23 -j DROP
  2. iptables -t filter -A OUTPUT -s 0/0 -p tcp -dport 23 -j DROP
  3. iptables -t filter -A INPUT -s 0/0 -p tcp -dport 80 -j DROP
  4. iptables -t filter -A INPUT -s 0/0 -p tcp -dport 53 -j ACCEPT
87. Jack wants to use a command at the shell prompt to scan his Linux system to determine what services are currently running on it. The IP address of the system is 192.168.10.10. Which of the following commands should he use?
  1. scan 192.168.10.10 -TCP
  2. scan 192.168.10.10 -UDP
  3. nmap 192.168.10.10 -scan
  4. nmap -sT 192.168.10.10
88. You want to load the ssh client and connect to an sshd daemon running on a host with an IP address of 192.168.1.25. Your user account jackshw. Which of the following commands should you use?
  1. sshd -l jackshw 192.168.1.25
  2. ssh -u jackshw 192.168.1.25
  3. ssh -l jackshw 192.168.1.25
  4. ssh user= jackshw 192.168.1.25
89. Your system is configured to boot to runlevel 3 by default. You use the startx command to start your graphical environment. Which file should you edit in your home directory to specify your default window manager?
  1. .Xsession
  2. .Xdefaults
  3. .xinitrc
  4. .Xclients
90. Jack is configuring the /etc/logrotate.d/ntp file to customize logging from the Network Time Protocol daemon on his system. He wants the archived logs to be saved using the current date in the file name extension. Which directive in the ntp file will help him accomplish this?
  1. notifempty
  2. rotate
  3. dateext
  4. create

Select how would you like to study