A systems administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role. Which of the following could be used to install more Linux servers with the same characteristics?
A. /etc/sysconfig/anaconda.cfg
B. /root/anaconda.auto
C. /root/anaconda-ks.cfg
D. /etc/sysconfig/installation.cfg
Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry:
joe:x:505:505::/home/joe:/bin/false
Which of the following commands should the administrator execute to resolve the problem?
A. usermod -s /bin/bash joe
B. passwd -u joe
C. useradd -s /bin/bash joe
D. chage -E -1 joe
A user needs to access the GUI of an application on a remote console using encrypted x-forwarding. Which of the following BEST accomplishes this?
A. scp -X user@server "./GUIapplication.bin"
B. ssh user@server "./GUIapplication.bin"
C. ssh -X user@server "./GUIapplication.bin"
D. ssh-copy-id user@server "./GUIapplication.bin"
A Linux administrator has downloaded the network-tools-12.1-17.i386.rpm package for installation to a local system. The administrator issues the rpm -ivh nerwork-cools-12.1-17.i386.rpm command to install the package. After attempting to use the newly installed package, the administrator realizes the package for the system's architecture was not installed correctly.
Which of the following commands should the administrator use to remove the package from the system?
A. rpm -e network-tools
B. rpm -U network-tools-12.1-17.i386.rpm
C. rpm -ivh network-tools-12.1-17.i686.rpm
D. rpm -r network-tools
tracepath -n 192.168.1.100An administrator completed the configuration of the in-addr.arpa zone files for an organization. Which of the following commands should the administrator use to verify the configuration is working as expected?
A. ping -n 192.168.1.100
B. host in-add.arpa
C. dig -x 192.168.1.100
D. nslookup in-addr.arpa
E. tracepath -n 192.168.1.100
A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?
A. rsync -aHAX /share/* serverB:/newshare
B. dd if=/share/* of=serverB:/newshare
C. tar -cvf /share/* serverB:/newshare
D. mirrorlv /share/* serverB:/newshare
A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks:
1.
Add localhost with loopback address.
2.
Add 192.168.192.12/24 to resolve to database01.comptia.org
Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?
A. Open the /etc/nsswitch.conf file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org
B. Open the /etc/dhcpd.conf file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org
C. Open the /etc/hosts file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org
D. Open the /etc/network file with a file editor and add the following lines:
127.0.0.1 localhost
192.168.192.12 database01.comptia.org
A junior systems administrator is diagnosing an issue with latency. The administrator issues the command mtr www.comptia.org at a terminal and receives the following output:
Given this scenario and the output, which of the following should be reported to the network team for investigation? (Choose two.)
A. Host 1 is set to filter ICMP reply packets.
B. Host 1 is set to filter ICMP echo packets.
C. Host 2 is experiencing high packet loss, indicating the link is overloaded.
D. Host 2 is experiencing low bandwidth, indicating the ISP is blocking traffic.
E. Host 3 is set to filter ICMP reply packets.
F. Host 3 is set to filter ICMP echo packets.
A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login. Which of the following is the BEST action the user can take to ensure the command is always available?
A. echo "alias dir=ls -la" > /etc/profile
B. echo "alias dir=ls -la" >> /etc/skel
C. echo "alias dir=ls -la" >> ~/.profile
D. echo "alias dir=ls -la" > ~/.bashrc
A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1.
Which of the following commands should the administrator execute to determine the default gateway of the server?
A. route -n
B. ip a default-gw
C. ifconfig
D. nslookup