Bird
0
0

Which of the following is the correct syntax to move a file named data.csv to a directory backup?

easy📝 Syntax Q3 of 15
Linux CLI - File and Directory Operations
Which of the following is the correct syntax to move a file named data.csv to a directory backup?
Amv data.csv -backup
Bmv data.csv backup/
Cmv data.csv > backup/
Dmv backup/ data.csv
Step-by-Step Solution
Solution:
  1. Step 1: Understand mv syntax for moving files

    The syntax is mv source destination. To move a file into a directory, destination must be the directory path.
  2. Step 2: Check options

    mv data.csv backup/ correctly moves data.csv into backup/ directory.
  3. Final Answer:

    mv data.csv backup/ -> Option B
  4. Quick Check:

    mv source directory/ moves file inside directory [OK]
Quick Trick: Use mv source destination_dir/ to move files [OK]
Common Mistakes:
  • Reversing source and destination
  • Using > which is redirection, not move
  • Adding invalid flags like -backup

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes