New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GIAC GSNA Exam - Topic 2 Question 57 Discussion

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

Which of the following commands is most useful for viewing large files?

Show Suggested Answer Hide Answer
Suggested Answer: A, D

The following two code are used to retrieve Attribute1:

1.Object obj=session1.getAttribute('Attribute1'); The getAttribute() method is used to retrieve the bound object with the specified

name in this session, or null if no object is bound under the name.

2.Object obj=binding1.getSession().getAttribute('Attribute1'); The getSession() gets the current valid session associated with this

request.

Answer E and C are incorrect. These code are invalid because the getAttribute() method returns an object instead of a long object or

a String object.

Answer B is incorrect. The HttpSessionBindingEvent object cannot use the getAttribute() method.


Contribute your Thoughts:

0/2000 characters
Amalia
3 months ago
I thought cp was for copying, not viewing?
upvoted 0 times
...
Adelina
3 months ago
Wait, touch? That's not for viewing!
upvoted 0 times
...
Aron
3 months ago
Cat just dumps everything on the screen.
upvoted 0 times
...
Yun
4 months ago
Definitely less, it lets you scroll!
upvoted 0 times
...
Kayleigh
4 months ago
I always use less for big files.
upvoted 0 times
...
Ariel
4 months ago
"touch" and "cp" don't seem relevant here, but I can't recall if "cat" could be used effectively for large files.
upvoted 0 times
...
Tennie
4 months ago
I practiced a similar question, and I believe "less" was the answer because it allows you to navigate without loading the whole file at once.
upvoted 0 times
...
Elza
4 months ago
I'm not entirely sure, but I remember "cat" is for displaying file content. It might not be the best for large files though.
upvoted 0 times
...
Tommy
5 months ago
I think "less" is the command we use for viewing large files, right? It lets you scroll through them.
upvoted 0 times
...
Agustin
5 months ago
I'm a bit unsure about this one. I know cat is for displaying the contents of a file, but I'm not sure if that's the best option for large files. I think I'll go with less - it sounds like it has more features for viewing and navigating large text files.
upvoted 0 times
...
Lettie
5 months ago
Definitely less. It's designed for viewing large text files, with features like scrolling, searching, and paging. cat is good for smaller files, but less is much more useful for large ones.
upvoted 0 times
...
Lashawn
5 months ago
Hmm, this is a tricky one. I'm not sure if cat is the best option for viewing large files, since it just dumps the entire contents to the terminal. I think I'll go with less - it lets you scroll through the file and search for specific content.
upvoted 0 times
...
Deane
5 months ago
Easy, the answer is B. less. It's the go-to command for viewing large files in the terminal. You can navigate through the content, search for specific text, and even edit the file if needed. cat is just for quickly printing the entire file.
upvoted 0 times
...
Lorrine
5 months ago
Hmm, this is an interesting one. I think the key here is to look for metrics that could indicate the regression test suite hasn't kept up with new functionality in the SUT.
upvoted 0 times
...
Carmelina
10 months ago
I bet the person who came up with touch was just really into making files feel special.
upvoted 0 times
Margot
8 months ago
D) cp
upvoted 0 times
...
Miles
8 months ago
C) touch
upvoted 0 times
...
Erin
9 months ago
B) less
upvoted 0 times
...
Cletus
9 months ago
A) cat
upvoted 0 times
...
...
Willis
10 months ago
C) touch? Really? What are we, cavemen? B) less is the only way to fly when it comes to viewing large files.
upvoted 0 times
Abraham
9 months ago
C) touch is definitely not the right command for viewing large files.
upvoted 0 times
...
Elin
9 months ago
A) cat is also useful for viewing large files, but less is more efficient.
upvoted 0 times
...
Danica
9 months ago
B) less is definitely the way to go for large files.
upvoted 0 times
...
Huey
9 months ago
D) cp
upvoted 0 times
...
Casey
9 months ago
C) touch
upvoted 0 times
...
Zona
9 months ago
B) less
upvoted 0 times
...
Julian
10 months ago
A) cat
upvoted 0 times
...
...
Whitney
10 months ago
Does anyone else remember the good old days when we had to use a magnifying glass to read files? B) less is a game-changer!
upvoted 0 times
...
Olive
10 months ago
I tried using cat on a 10GB file, and my computer almost crashed! less is definitely the better choice.
upvoted 0 times
Lawrence
8 months ago
Yeah, less is definitely the way to go for large files.
upvoted 0 times
...
Janine
9 months ago
I learned my lesson the hard way with cat on a huge file.
upvoted 0 times
...
Santos
9 months ago
I always use less for viewing big files, it's much faster.
upvoted 0 times
...
Tamra
9 months ago
I agree, cat can be really slow with large files.
upvoted 0 times
...
...
Lorriane
10 months ago
B) less is definitely the way to go for viewing large files. It's much more efficient than cat.
upvoted 0 times
...
Mona
10 months ago
I'm not sure, but I think A) cat can also be used to view large files, although it may not be as efficient as less.
upvoted 0 times
...
Jerry
11 months ago
I agree with Sabra, less is definitely the most useful command for viewing large files efficiently.
upvoted 0 times
...
Sabra
11 months ago
I think the answer is B) less because it allows you to view large files without loading the entire file into memory.
upvoted 0 times
...

Save Cancel