010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 60


Which command displays file names only and no additional information?

Show Answer
Correct Answer: A

The command 'ls -a' displays the names of all files, including hidden files, without any additional information. Other options such as 'ls -lh', 'ls -l', 'ls -alh', and 'ls -nl' provide more detailed information or additional data such as file permissions, sizes, and more.

Discussion

5 comments
Sign in to comment
CorbinOption: E
Aug 18, 2020

I'm sure the -a option is used to show hidden files. The -l option makes the list more verbose, the normal "ls" by itself shows only the file and directory names and nothing else. All the options except the -a have an -l in them

encognyto
Feb 26, 2021

You're correct about the option -a showing the hidden files. However, option ls -a also only shows file names. It just happens to show the hidden file names as well. All of the other answers choices will show more than just a file name when used.

beazzlebubOption: A
Jul 26, 2021

Answer is A

reagan_donaldOption: A
Jan 19, 2023

ls -a is correct, it not only shows hidden files, it also show files that are not hidden by any means, ls -a works in a same way as ls, but additionally shows hidden files.

FakenixOption: A
Jun 11, 2023

A is the correct answer. Question asks for name ONLY, with no aditional information. All the other options contain the -l parameter, which means the long (verbose) version with additional information

bradseth
Apr 7, 2023

should be ls -1