[amp_mcq option1=”ls -F -x” option2=”ls -l” option3=”ls ~ x” option4=”Ip E. None of the above” correct=”option1″]
The correct answer is A. ls -F -x.
The ls command is used to list the contents of a directory. The -F option tells ls to print a slash (/) after each directory name, and an asterisk (*) after each executable file name. The -x option tells ls to list hidden files.
The ls -l command lists the contents of a directory in long format. This includes the file name, permissions, owner, group, size, and modification date.
The ls ~ command lists the contents of the current user’s home directory.
The ip command is used to display information about network interfaces.
Therefore, the only command that displays the filenames in multiple columns with indication of directories and executable files is ls -F -x.