Which command displays file names only and no additional information?
Which command displays file names only and no additional information?
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.
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
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.
Answer is A
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.
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
should be ls -1