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 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:

Carmelina
2 months ago
I bet the person who came up with touch was just really into making files feel special.
upvoted 0 times
Margot
6 days ago
D) cp
upvoted 0 times
...
Miles
7 days ago
C) touch
upvoted 0 times
...
Erin
11 days ago
B) less
upvoted 0 times
...
Cletus
1 months ago
A) cat
upvoted 0 times
...
...
Willis
2 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
13 days ago
C) touch is definitely not the right command for viewing large files.
upvoted 0 times
...
Elin
15 days ago
A) cat is also useful for viewing large files, but less is more efficient.
upvoted 0 times
...
Danica
18 days ago
B) less is definitely the way to go for large files.
upvoted 0 times
...
Huey
21 days ago
D) cp
upvoted 0 times
...
Casey
22 days ago
C) touch
upvoted 0 times
...
Zona
26 days ago
B) less
upvoted 0 times
...
Julian
1 months ago
A) cat
upvoted 0 times
...
...
Whitney
2 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
2 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
2 days ago
Yeah, less is definitely the way to go for large files.
upvoted 0 times
...
Janine
13 days ago
I learned my lesson the hard way with cat on a huge file.
upvoted 0 times
...
Santos
16 days ago
I always use less for viewing big files, it's much faster.
upvoted 0 times
...
Tamra
21 days ago
I agree, cat can be really slow with large files.
upvoted 0 times
...
...
Lorriane
2 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
2 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
2 months ago
I agree with Sabra, less is definitely the most useful command for viewing large files efficiently.
upvoted 0 times
...
Sabra
2 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