Linux_1-25

Linux_1-25

Professional Development

25 Qs

quiz-placeholder

Similar activities

MTCNA Pretest 2

MTCNA Pretest 2

Professional Development

22 Qs

101-120

101-120

Professional Development

20 Qs

A+ - 6A - Summarize Services Provided by Networked Hosts

A+ - 6A - Summarize Services Provided by Networked Hosts

Professional Development

22 Qs

security+ (601)

security+ (601)

9th Grade - Professional Development

20 Qs

IT mock test

IT mock test

Professional Development

20 Qs

Part 1.2

Part 1.2

Professional Development

25 Qs

Linux Creating Users and Groups

Linux Creating Users and Groups

Professional Development

27 Qs

CCNA2 chapter 4

CCNA2 chapter 4

1st Grade - Professional Development

26 Qs

Linux_1-25

Linux_1-25

Assessment

Quiz

Computers

Professional Development

Easy

Created by

linux sinav

Used 86+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?