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