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.