Which command displays file names only and no additional information?
A.
ls -a
B.
ls -lh
C.
ls -l
D.
ls -alh
E.
ls -nl
The Answer Is:
A
This question includes an explanation.
Explanation:
The ls command is used to list the files and directories in a given path. By default, the ls command displays only the file names, without any additional information. However, the ls command can also take various options to modify its output. For example, the -l option tells ls to display the long format, which includes the file permissions, owner, group, size, date, and name. The -h option tells ls to display the file sizes in a human-readable format, such as KB, MB, GB, etc. The -a option tells ls to display all files, including thehidden ones that start with a dot (.). The -n option tells ls to display the numeric user ID and group ID instead of the user name and group name. Therefore, the only option that does not add any additional information to the file names is the -a option. The command ls -a will display all the file names in the current directory, including the hidden ones, but nothing else. References:
Linux Essentials - Linux Professional Institute (LPI), section 2.1.1
2.1 Lesson 1 - Linux Professional Institute Certification Programs, slide 6.
010-160 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"