Linux_1-25
Quiz
•
Computers
•
Professional Development
•
Easy
linux sinav
Used 86+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following
commands should the administrator use to identify the correct version of this file?
A. rpm -qa | grep kernel; uname -a
B. yum -y update; shutdown -r now
C. cat /etc/centos-release; rpm -Uvh --nodeps
D. telinit 1; restorecon -Rv /boot
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to
change the port number to the desired value?
A. /etc/host.conf
B. /etc/hostname
C. /etc/services
D. /etc/ssh/sshd_config
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which
of the following commands should the administrator use for this task?
A. git reflog
B. git pull
C. git status
D. git push
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following
commands will accomplish this task?
A. iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT - -to-destination 192.0.2.25:3128
B. iptables -t nat -A PREROUTING -p top --dport 81 -j DNAT --to-destination 192.0.2.25:3129
C. iptables -t nat -| PREROUTING -p top -sport 80 -j DNAT --to-destination 192.0.2.25:3129
D. iptables -t nat -A PREROUTING -p tcp -dport 80 -j DNAT --to-destination 192.0.2.25:3128
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to
10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?
A. route -i etho -p add 10.0.213.5 10.0.5.1
B. route modify ethO +ipv4.routes "10.0.213.5/32 10.0.5.1"
C. echo "10.0.213.5 10.0.5.1 ethO" > /proc/net/route
D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:
#1/bin/bash
filename=$1
<CONDITIONAL>
echo "File exists"
else
echo "File does not exist"
fi
A. if [-f "$filename" ]; then
B. if [-d "filename" ]; then
C. if [-f "Sfilename" ] then
D. if [ -f "$filename" ]; while
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Simulasyon Sorusu
DRAG DROP -
As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:
Add relevant content to /tmp/script.sh, so that it finds and compresses related files in /var/log without recursion.
INSTRUCTIONS:
Drag and drop snippets to fill the blanks to build a script that performs the actual compression of rotated log files.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
#!/bin/bash
#name: script.sh
find /var/log -type f -maxdepth 1 | grep ................ > /tmp/tempfile .........
filename ..... $(cat................)
do
............ $filename
............
Bosluklara sürüklenecek ifadeler sirayla
"$log.[1-6]$"
for
in
/tmp/tempfile
gzip
done
B. bos
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Diagnóstico de tecnologías de la información y comunicación
Quiz
•
University - Professi...
20 questions
SEGURETAT DIGITAL ÀREA 1 CDD (B1)
Quiz
•
Professional Development
24 questions
Amazon Almeirim
Quiz
•
Professional Development
20 questions
Salesforce Developer
Quiz
•
Professional Development
20 questions
Pascal (Тест 3)
Quiz
•
Professional Development
20 questions
VIDEOJUEGOS-CMSB
Quiz
•
1st Grade - Professio...
20 questions
Introduction to Machine Learning
Quiz
•
University - Professi...
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
