Multiple choice unix

The cp command uses:

  1. standard input file

  2. standard output file

  3. both input and output file

  4. neither standard input nor standard output file

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

The cp command copies files by taking source and destination file paths as command-line arguments, not from standard input. It writes data directly to the destination file, not to standard output. This distinguishes cp from commands like cat or tr that read from stdin or write to stdout.