Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC Exam GSNA Topic 6 Question 66 Discussion

Actual exam question for GIAC's GSNA exam
Question #: 66
Topic #: 6
[All GSNA Questions]

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 a data.txt file in which each column is separated by the TAB character. Now, he wants to use this file as input for a data mining software he has created. The problem preventing him from accomplishing his task is that with his data mining software, he has used TAB as a delimiter to distinguish between columns. Hence, he is unable to use this file as input for the software. However, if he somehow replaces the TAB characters of the file with SPACE characters, he can use this file as an input file for his data mining software. Which of the following commands will John use to replace the TAB characters of the file with SPACE characters?

Show Suggested Answer Hide Answer
Suggested Answer: D

In Unix, the /etc/securetty file is used to identify the secure terminals from where the root can be allowed to log in.

Answer B is incorrect. In Unix, the /etc/ioports file shows which I/O ports are in use at the moment.

Answer A is incorrect. In Unix, the /etc/services file is the configuration file that lists the network services that the system supports.

Answer C is incorrect. In Unix, the /proc/interrupts file is the configuration file that shows the interrupts in use and how many of each

there has been.


Contribute your Thoughts:

Laurene
30 days ago
I bet John's data mining software is as confusing as this question. Gotta love tech problems!
upvoted 0 times
...
Veronique
1 months ago
Seriously? Chmod and touch? Those commands have nothing to do with replacing characters in a file. I need to brush up on my Linux skills.
upvoted 0 times
...
Moon
1 months ago
Wait, what? I thought we were supposed to use cat to read the file. This is definitely trickier than it looks.
upvoted 0 times
Corinne
5 days ago
A) Oh, right. Then it must be 'expand -t 1 data.txt > data.txt'.
upvoted 0 times
...
Ceola
7 days ago
B) No, that won't work. You need to replace TAB with SPACE.
upvoted 0 times
...
Leah
19 days ago
A) expand -t 1 data.txt > data.txt
upvoted 0 times
...
...
Soledad
1 months ago
Hmm, I was thinking about using sed, but expand seems like a more straightforward solution. Nice find!
upvoted 0 times
Buck
9 days ago
User 1: Thanks! I think expand -t 1 data.txt > data.txt should do the trick.
upvoted 0 times
...
...
Oliva
2 months ago
The expand command is the way to go! It will replace the TAB characters with spaces, making the file compatible with the data mining software.
upvoted 0 times
Blondell
18 days ago
Thanks! I'll try that command right away.
upvoted 0 times
...
Lorrie
1 months ago
Great choice! This command will replace the TAB characters with spaces in the file.
upvoted 0 times
...
Kristel
1 months ago
A) expand -t 1 data.txt > data.txt
upvoted 0 times
...
...
Tarra
2 months ago
I'm not sure about the answer. Can someone explain why option A is the correct choice?
upvoted 0 times
...
Vivan
2 months ago
I agree with Dan. Option A seems like the correct command for John to use in this situation.
upvoted 0 times
...
Dan
2 months ago
I think John should use option A) expand -t 1 data.txt > data.txt to replace TAB characters with SPACE.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77