Deal of The Day! 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

Posted by Winfred on Sep 19, 2024 at 11:53 AM

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

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.


Get Premium GSNA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
37 comments · newest first
AM
Amalia 10 months ago
I thought cp was for copying, not viewing?
AD
Adelina 11 months ago
Wait, touch? That's not for viewing!
AR
Aron 11 months ago
Cat just dumps everything on the screen.
YU
Yun 11 months ago
Definitely less, it lets you scroll!
KA
Kayleigh 11 months ago
I always use less for big files.
AR
Ariel 11 months ago
"touch" and "cp" don't seem relevant here, but I can't recall if "cat" could be used effectively for large files.
TE
Tennie 12 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.
EL
Elza 12 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.
TO
Tommy 12 months ago
I think "less" is the command we use for viewing large files, right? It lets you scroll through them.
AG
Agustin 12 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.
LE
Lettie 12 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.
LA
Lashawn 1 year 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.
DE
Deane 1 year 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.
LO
Lorrine 1 year 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.
CA
Carmelina 1 year ago
I bet the person who came up with touch was just really into making files feel special.
MA
Margot 1 year ago
↳ replying to Carmelina
D) cp
MI
Miles 1 year ago
↳ replying to Carmelina
C) touch
ER
Erin 1 year ago
↳ replying to Carmelina
B) less
CL
Cletus 1 year ago
↳ replying to Carmelina
A) cat
WI
Willis 1 year ago
C) touch? Really? What are we, cavemen? B) less is the only way to fly when it comes to viewing large files.
AB
Abraham 1 year ago
↳ replying to Willis
C) touch is definitely not the right command for viewing large files.
EL
Elin 1 year ago
↳ replying to Willis
A) cat is also useful for viewing large files, but less is more efficient.
DA
Danica 1 year ago
↳ replying to Willis
B) less is definitely the way to go for large files.
HU
Huey 1 year ago
↳ replying to Willis
D) cp
CA
Casey 1 year ago
↳ replying to Willis
C) touch
ZO
Zona 1 year ago
↳ replying to Willis
B) less
JU
Julian 1 year ago
↳ replying to Willis
A) cat
WH
Whitney 1 year 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!
OL
Olive 1 year ago
I tried using cat on a 10GB file, and my computer almost crashed! less is definitely the better choice.
LA
Lawrence 1 year ago
↳ replying to Olive
Yeah, less is definitely the way to go for large files.
JA
Janine 1 year ago
↳ replying to Olive
I learned my lesson the hard way with cat on a huge file.
SA
Santos 1 year ago
↳ replying to Olive
I always use less for viewing big files, it's much faster.
TA
Tamra 1 year ago
↳ replying to Olive
I agree, cat can be really slow with large files.
LO
Lorriane 1 year ago
B) less is definitely the way to go for viewing large files. It's much more efficient than cat.
MO
Mona 1 year 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.
JE
Jerry 2 years ago
I agree with Sabra, less is definitely the most useful command for viewing large files efficiently.
SA
Sabra 2 years ago
I think the answer is B) less because it allows you to view large files without loading the entire file into memory.
0/2000 characters

Save Cancel