SpinTheMic
Pro

Interview practice question

Renaming many files at once

Cloud & DevOps · Linux and Scripting · Beginner

You need to rename 500 files from "report_2025_*.txt" to "archive_2025_*.txt". How would you do it safely?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Bash for loop with parameter expansion.
  • Dry run with echo first.
  • Quote filenames.
  • rename utility alternative.
  • Backup if critical.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics