Which command displays file names only and no additional information?

Prepare for the LPI Linux Essentials 010-160 Test. Study with flashcards and multiple choice questions, each question offers hints and explanations. Get ready to ace your exam!

The command that displays file names only and no additional information is the one that is designed to list the contents of a directory in a simple format. The option that achieves this is the one using the argument that specifies a single column for output.

In this case, the 'ls -1' command lists each file and directory in the specified directory on a new line, presenting a clear and concise view of file names without any other details such as file size, permissions, or modification dates, which are provided by other options like 'ls -l' for long listings or 'ls -s' which shows sizes. The use of a numeral one in this command helps to denote that only one file name should be displayed per line, promoting clarity when viewing a large number of files.

While 'ls -a' would display all files including hidden ones, it still includes additional details about the files when combined with other flags, and thus does not fulfill the requirement of showing file names only.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy