Linux_1-25

Linux_1-25

Professional Development

25 Qs

quiz-placeholder

Similar activities

Evaluación de procesos 02

Evaluación de procesos 02

Professional Development

20 Qs

UJIAN SEMESTER II :  KKPI (TAHUN 2019-2020)

UJIAN SEMESTER II : KKPI (TAHUN 2019-2020)

Professional Development

20 Qs

เทคโนโลยี (วิทยาการคำนวณ) ชั้นมัธยมศึกษาปีที่ 5

เทคโนโลยี (วิทยาการคำนวณ) ชั้นมัธยมศึกษาปีที่ 5

Professional Development

20 Qs

DataBase Quiz - CME Workshop

DataBase Quiz - CME Workshop

Professional Development

20 Qs

Révision HTML, CSS et JavaScript

Révision HTML, CSS et JavaScript

Professional Development

20 Qs

BCA - IV SEM DBMS

BCA - IV SEM DBMS

Professional Development

20 Qs

Teaching Strategy

Teaching Strategy

Professional Development

20 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Linux_1-25

Linux_1-25

Assessment

Quiz

Computers

Professional Development

Easy

Created by

linux sinav

Used 86+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?