Which of the following commands will John use to accomplish his task?

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working
as a root user on the Linux operating system. He has recently backed up his entire Linux hard drive into the my_backup.tgz
file. The size of the my_backup.tgz file is 800MB. Now, he wants to break this file into two files in which the size of the first file
named my_backup.tgz.aa should be 600MB and that of the second file named my_backup.tgz.ab should be 200MB. Which
of the following commands will John use to accomplish his task?

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working
as a root user on the Linux operating system. He has recently backed up his entire Linux hard drive into the my_backup.tgz
file. The size of the my_backup.tgz file is 800MB. Now, he wants to break this file into two files in which the size of the first file
named my_backup.tgz.aa should be 600MB and that of the second file named my_backup.tgz.ab should be 200MB. Which
of the following commands will John use to accomplish his task?

A.
split –verbose -b 200m my_backup.tgz my_backup.tgz

B.
split –verbose -b 200m my_backup.tgz my_backup.tgz

C.
split –verbose -b 600m my_backup.tgz my_backup.tgzaa

D.
split –verbose -b 600m my_backup.tgz my_backup.tgz

Explanation:
Synopsis
split [OPTION] [INPUT [PREFIX]]
Description

Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, …; default size is 1000 lines, and default PREFIX is ‘x’. With no INPUT, or when INPUT is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.

-a, –suffix-length=N
use suffixes of length N (default 2)
-b, –bytes=SIZE
put SIZE bytes per output file
-C, –line-bytes=SIZE
put at most SIZE bytes of lines per output file
-d, –numeric-suffixes
use numeric suffixes instead of alphabetic
-l, –lines=NUMBER
put NUMBER lines per output file
–verbose
print a diagnostic to standard error just before each output file is opened
–help
display this help and exit
–version
output version information and exit

SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


al

al

split –verbose is correct.