Question 96 of 135 from exam XK0-004: CompTIA Linux+

Question 96 of 135 from exam XK0-004: CompTIA Linux+

Question

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 rotated files in /var/log without recursion.

INSTRUCTIONS - 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.

Select and Place:

Snippets

#1 /bin/bash

inane: script. sh

Find /var/log -type F -maxdepth 1 | grep

filename

$filename

> /tmp/tenpfile

Explanations

Snippets

#1 /bin/bash

inane: script. sh

Find /var/log -type F -maxdepth 1 | grep

filename

$filename

> /tmp/tenpfile