Multiple choice technology web technology

"ls .." would list?

  1. List Contents of Current Working Directory.

  2. List Contents of Parent Directory.

  3. Display an Error.

  4. Display properties of file ..

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The command 'ls ..' uses '..' which is a relative path reference to the parent directory. Therefore it lists the contents of the parent directory, not the current directory.