Multiple choice technology operating systems

Following commands can be used to create a file.

  1. mv

  2. cat

  3. ed

  4. touch

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

cat, ed, and touch can all create files: 'cat > filename' creates a file by redirecting output, 'ed' is a text editor that creates files when saving new content, and 'touch' creates an empty file or updates timestamps. Options B, C, and D are correct. Option A (mv) is incorrect because mv moves or renames existing files - it cannot create a new file from scratch; it requires a source file to move, making it unsuitable for file creation.