To rename a file in Linux use mv command and move the file within the same directory with a different name. There is no rename command in Linux