rename file bash command code example Example 1: bash rename file mv oldname newname Example 2: rename file linux mv (option) filename1.ext filename2.ext