Multiple choice technology operating systems

Command for listing local files after connecting to FTP machine

  1. ls -lrt

  2. ls

  3. !dir

  4. dir /p

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

Using an exclamation mark prefix within an interactive FTP session allows execution of shell commands on the local machine rather than the remote host. Distractors like ls and dir /p execute on the remote machine, whereas !dir correctly lists local files.