An administrator is writing a Bash script that contains a loop that increments the value of the variable count with each loop iteration by 1. Which of the following should the administrator use?
A junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing “help” in the terminal will show a list of relevant commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
CentOS Command Prompt
A virtual machine logs al limes using UTC The systems administrator would like to have one script that outputs times that are in the Amenca/Chicago time zone. Which of the following would the administrator MOST likely use in the script to accounts.
An administrator needs to copy files from a Samba share where the server name is accounting. local, the share is reports, and the username is admin. Assuming local directories exist, which of the following commands would connect to the share?
Vytvcft of the following a a fie that can define how to build deploy and mstaf various components for a Linux application hosted m a cloud environment?
Which of the following directories contains information related to various runtime processes, such as hardware and system memory?
A Lunix administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgSlash-lvLog device using the LVM tools. However the additional space does not show up when the administrator runs the df -h command. Which of the following commands should the adiministrator run to resolve thrs issue?
Ann, a Linux administrator, is storing scripts in a private Git repository. Which of the following commands should Ann use to avoid entering the login and password every time Ann commits change?
Which of the following commands would show the default printer on a Linux system?
An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:
Upon checking the logical volume status, the administrator receives this information:
Which of the following can be said about the data logical volume, and how can this problem be resolved?
A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of
the following is the correct syntax?
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP.
Which of the following commands should the administrator execute?
An administrator needs to see a list of the system user’s encrypted passwords. Which of the following Linux files does the administrator need to read?
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?
A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate.
The administrator uses the command renice -n -5 -p2864, but it does not solve the issue. Which of the following commands should the administrator execute to correct the issue?
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 Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used?
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.
Which of the following commands will achieve this task?
A user attempts to use the mount -a command but gets the following error:
mount: mount point /mnt/test does not exist
Which of the following commands best describes the action the Linux administrator should take NEXT?
A junior Linux administrator needs to create 16 empty files quickly that will contain sales information for each
quarter for the past four years. Which of the following commands will meet this requirement?
A user issues the following command:
ls –l /var/log | egrep –e ‘^d[rwx]{3}.*[rw-]{3}.*’
The list of files in the system is shown below:
Which of the following results matches the command issued?
A company wants to provide internal identity verification services for networked devices. Which of the following servers should be installed?
A technician wants to create a set of directories named dir9 and change their permissions so only the owner can manage their content. Which of the following scripts will accomplish this task?
A)
B)
C)
D)
A Linux administrator needs the “tech” account to have the option to run elevated commands as root.
Which of the following commands would BEST meet this goal?
A Linux administrator needs to take stock of USB devices attached to the system.
Which of the following commands would be BEST to complete this task?
An administrator was updating several systems and received the following warning for each one: No support Locale en_US.UTF-8. Which of the following should the administrator run to eliminate this warning?
Which of the following commands should a system administrator use to configure a passwordless login to remote system? (Select TWO.)
A user does not want Bluetooth to start up event time the system starts. Which of the following commands should the user execute to accomplish this task?
An administrator notices the HISTSIZE variable is 50, using the commands below:
HISTSIZE=50
export HISTSIZE
The administrator rechecks the HISTSIZE value using echo HISTSIZE but gets no value. Which of the
following commands should the administrator use to retrieve its value?
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 systems engineer scheduled an at job that will reboot a critical server. A developer states the processes will not complete for another three hours.
Which of the following will help the systems engineer to remove the job?
A site reliability engineer updated the latest configuration management scripts and committed them to a
workstream called either test or patch. A Linux administrator wants to ensure these latest workstreams are
able to be retrieved to the server. Which of the following is the BEST Git attribute to use?
A Linux systems administrator is implementing Source Code Management for the web application server
configuration files located in /etc/httpd/. Which of the following steps should the administrator perform
FIRST?
An administrator is investigating issues with an unresponsive website hosted on an internal web server named websrv. After gathering diagnostics data the administrator performs the following analysis:
Which of the following would MOST likely resolve the issue on the web server?
A server technician deployed ten ctoned Linux devices in an organization. When testing network functionality of the devices, the technician notices the cloned devices have identical hostnames. Which of the following commands si hostnames of the devices permanently'?
A Linux administrator configured several network interfaces to be used for backup. The administrator entered the following commands:
After the last command, a new interlace appeared as connected and worked until the Linux system was rebooted. After the reboot, the Interface did not connect properly. Which of the following configuration changes are needed to ensure that the Interface connects automatically?
Which of the following BEST describes the difference between a container and a VM?
A system ran out of storage space on a particular mount and will not allow anything to be written to disk. The df command shows there are 6GB free on the mount, and there is no inode exhaustion. This issue has happened before due to a known large log file that was not being rotated. The administrator remembers the file name but cannot remember the location of the log file or which process is writing to it. Which of the following would be the BEST solution to correct this issue while maintaining availability?
After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty best practice?
A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator
copied the files last week but must ensure any files created or modified since then are added.
Which of the following is the BEST command for the administrator to use?
An administrator receives the following message on a remote server: Cannot open display. Which of the
following should the administrator have used to log in to the server?
A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local
.tmp files that are occasionally created by the scripts.
Which of the following is the BEST way to accomplish this task?
A Linux team is using Git to version a set of custom scripts. A team member has made an update to a script
and published the changes to the repository.
Which of the following is the BEST way to retrieve the latest changes to the administrator's local working copy?
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:
Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?
An administrator needs to download a monitoring agent called node_exporter.0.16.0-Linux.amd64 from the internal web page https://company.local/downloads/. The server does not have graphical interface.
Which of the following commands will accomplish this task?
A systems administration team has decided to their systems as immutable instances. They keep the desired state of each of their systems in version control and apply automation whenever they provision a new instance. If there is an issue with one of their servers, instead of troubleshooting the issue they terminate the instance and rebuild it using automation.
Which of the following is this an example of?
An administrator needs to run the rescript. sh script stored on the /nr.t/disk Wesystem. but permission is denied;
The system options are:
The script properties are:
Which of the following will resolve the issue?
A systems administrator copied the latest archive Of the corporate application, corpapp.tar.gz, to a new server. The backup software lists the following entry in the log file:
Which of the following should the administrator run to verify the archive copied correctly without corruption?
A systems administrator a retting an HTTPO server on a Lnux server and configuring as a proxy server The administrator runs the following commands to venfy that the service is running:
However, the arjminrstraior is getting a 503 error when browsing to portal.company. internal. After reviewing the logs, the following error information is discovered:
Which of the following commands BEST resolves the issue?
A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab.
Which of the following crontab entries would run the script every Monday at 2:05 a.m.?
A user tries to log in to the Linux console and receives the following message:
Your account has expired; Please contact your system administrator.
Which of the following commands was MOST likely run to create this behavior?
Some Bash scripts arc being versioned and stored in a Git repository Which of the following commands should the Linux administrator use to exclude tmp Wes from being added to the repository during any code adds and commits?
A system administrator is troubleshooting a web server that runs in a container. After the log is retained, the container occasionally stops logging to a log file. Fortunately, the vendor provides a custom signal that allows the application to reconnect to the log file. Which of the following would be BEST for the administrator to run the containers?
An administrator wants to add a user named comptia to the system administrators group. Which of the following commands will accomplish this task?
A Linux server hosts Kerberos and LDAP, which of the following is the MOST likely role of this server?
An administrator is provisioning and attaching a secondary disk to a Linux server as a data drive. Which Of the following commands the administrator use to find the UUID Of the disk so the drive can be mounted upon boot?
A systems administrator is attempting to connect a printer to the network. After installing the printer, the systems admnstrator wants to provide a pnnting interface for network users to detect printers dynamically Which of the following would all…
A developer has contacted a systems administrator because an application is not receiving a response from the client. The application must purge the message queue before terminating. Which of the following should the systems administrator perform in order to BEST address the issue?
A security audit concludes that an organization's database servers need to be hardened As a result, an administrator obtans tie fofcjwwng partial Nmap output from a database server.
Which of the following commands should the administrator execute to mitigate security risks?
A security tool relies on a specific version of libssl. Which of the following would an administrator implement to prevent libssM 0 0 from being upgraded?
A Linux administrator execute the following steps in this order:
1. Changes some software code
2. Commits the changes to the Git repository
3. Triggers a job to compile
4. Execute some test scripts
5. Packages the software package
6. Publishes the software packages to a package repository
Which of the following orchestration processes is the administrator using?
A remote server reverts to the incorrect time when it is restarted. Which of the following will save the correct time to the BIOS clock once the time and date have been set on the server?
An administrator is logged on as an unprivileged user and needs to compile and installed an application from source. Which of the following BEST represents how to complete this task?
An administrator received a request from a security officer to eliminate a blacklisting set called internal-blocked the company is using in the iptables firewall.
Which of the following commands will complete the task?
A Linux administrator has configured a local named caching server to reduce the amount of time to resolve common DNS addresses. The server resolves using the external server, however; the administrator wants to avoid this configuration. The administrator verifies the named, conf settings to confirm the following relevant settings:
The administrator then runs dig twice to look up an external address and receives the following relevant output the second time.
Which of the following should the administrator do to correct the configuration?
A Linux administrator created a new log file in /var/log/newlog to monitor a newly installed application. The administrator is now configuring parameters of the file so it will be rotated on a weekly basis or when it becomes larger than 1MB in size. In addition, five rotations of the file should exist in the /var/log directory.
Which of the following should be added to the /etc/logrotate.conf file to meet this objective?