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
Corbin
Feb 18, 2022

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
Aug 26, 2022

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.

beazzlebub
Jan 26, 2023

Answer is A

reagan_donald
Jul 19, 2024

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.

Fakenix
Dec 11, 2024

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
Oct 7, 2024

should be ls -1