nerdexam
GIAC

GSNA · Question #268

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 wants to break a dat a.txt…

The correct answer is D. cat data.txt.* > data.txt. The cat data.txt.* command will display both the splitted files, and the > command will redirect the output into a new data.txt file.

Linux/Unix System Auditing

Question

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 wants to break a dat a.txt file, 200MB in size, into two files in which the size of the first file named data.txt.aa should be 150MB and that of the second file named data.txt.ab should be 50MB. To accomplish his task and to further delete the data.txt file, he enters the following command:

split --verbose -b 150m data.txt data.txt. ; rm -vf data.txt Which of the following commands can John use to join the splitted files into a new data.txt file?

Options

  • Avi data.txt.* > data.txt
  • Bless data.txt.* > data.txt
  • Cvi data.txt.*
  • Dcat data.txt.* > data.txt

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    12% (3)
  • D
    81% (21)

Explanation

The cat data.txt.* command will display both the splitted files, and the > command will redirect the output into a new data.txt file.

Topics

#split command#cat command#file manipulation#Linux file utilities

Community Discussion

No community discussion yet for this question.

Full GSNA Practice