Multiple choice technology programming languages

How do I make all filenames in a directory lowercase?

  1. for i in *; do mv $i `echo $i | tr [A-Z] [a-z]`; done
  2. ls | mv $i | tr [A-Z] [a-z];
  3. ls | for I in do mv $i | tr [A-Z] [a-z]; done
  4. None

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

The loop iterates over all files in the directory and uses mv along with tr to translate uppercase characters [A-Z] to lowercase [a-z] for each filename.