Which option will cause ls to display hidden files and folders?
Suggested Answer: A
Get Premium LFCA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
40 comments · newest first
CA
Carline
11 months ago
Yeah, ls -a is the right one!
NA
Natalie
11 months ago
Wait, are you sure about ls -a?
TI
Timothy
12 months ago
ls -v? That's not even close!
TR
Tresa
12 months ago
I thought it was ls -l at first.
GL
Glen
1 year ago
It's definitely ls -a for hidden files!
MA
Malcom
1 year ago
I’m pretty confident it’s ls -a. Hidden files usually start with a dot, right?
TR
Truman
1 year ago
I’m a bit confused; I thought -l showed details about files, not hidden ones.
VI
Virgina
1 year ago
I feel like I’ve seen a question like this before, and I think -a was the answer. The others don’t seem right.
MA
Marilynn
1 year ago
I think it's ls -a, but I’m not completely sure. I remember something about the -a flag showing all files.
PA
Pamela
1 year ago
I'm confident that the answer is C. The -a option is the one that will show hidden files and folders in the ls command.
FR
Francene
1 year ago
I'm leaning towards C as well. The -a option seems to be the one that will display all files, including the hidden ones.
TO
Tori
1 year ago
The key here is to look for the option that specifically mentions hidden files and folders. I think C is the right answer.
CO
Cordell
1 year ago
Hmm, I'm a bit confused. I thought the -l option would show hidden files, but I'm not sure. I'll have to think about this one.
AL
Alisha
1 year ago
I'm pretty sure the answer is C. The -a option is used to show all files, including hidden ones.
OD
Odette
1 year ago
ls -t? Nah, I prefer ls -u, for 'Unbelievable, where did all these hidden files come from?'
HO
Hollis
1 year ago
ls -a? More like ls -OMG, there's my embarrassing .config folder!
DA
Daron
1 year ago
ls -a? That's the one! It shows all the files, even the hidden ones.
KE
Keena
1 year ago
I always use ls -a to see all the hidden files in my directory.
EM
Emmett
1 year ago
Yes, you're right! ls -a displays hidden files and folders.
RH
Rhea
1 year ago
D) ls -t
RO
Royal
1 year ago
C) ls -a
HE
Herman
1 year ago
B) ls -l
YV
Yvonne
1 year ago
A) ls -v
WA
Wayne
1 year ago
C'mon, it's gotta be ls -t. That sorts the files by modification time, which is way more useful than hidden files.
RO
Roxane
2 years ago
No way, it's definitely ls -v. Who needs to see those pesky hidden files anyway?
DA
Dacia
1 year ago
I always use ls -a to see hidden files and folders.
CA
Carmelina
1 year ago
No, ls -v is the correct option for displaying hidden files.
TY
Tyisha
1 year ago
I think it's actually ls -a that displays hidden files.
KA
Kassandra
2 years ago
Hmm, I think it's ls -l. That gives you the long listing format, which includes hidden files.
AL
Alfreda
1 year ago
User 3: ls -a makes sense. It's the one for hidden files and folders.
MA
Margurite
1 year ago
User 2: Oh, I see. Thanks for clarifying that.
MA
Malika
1 year ago
User 1: Actually, it's ls -a. That option displays all files, including hidden ones.
DE
Devora
2 years ago
I'm pretty sure it's ls -a. That's the classic command to show hidden files, right?
NO
Noah
1 year ago
ls -a is the way to go if you want to see hidden files in the directory.
IE
Iesha
1 year ago
ls -a is definitely the command you want to use for that.
EL
Elfriede
1 year ago
I always use ls -a to see all the files, including the hidden ones.
LE
Leonard
1 year ago
Yes, you're correct. ls -a will display hidden files and folders.
LI
Lisha
2 years ago
I'm not sure, but ls -v doesn't seem right for this question.
DA
Daniela
2 years ago
I agree with Evangelina, ls -a displays hidden files and folders.
EV
Evangelina
2 years ago
I think the answer is C) ls -a.