Which of the following commands is used to list contents of directories? A. ls B. lp C. dir D. tar E. None of the above

ls
lp
dir
tar E. None of the above

The correct answer is A. ls.

The ls command is used to list the contents of a directory. It can be used to list the contents of the current directory, or the contents of any other directory. The ls command can also be used to list the contents of a file.

The lp command is used to print a file.

The dir command is used to list the contents of a directory in Windows.

The tar command is used to create, extract, and list archive files.

E is not a valid option.