To rename file using the mv command in Linux, open the terminal and use the syntax mv old_file_name new_file_name. This will rename the old_file_name to new_file_name. For instance, if you have a file named hello.txt and you want to rename it as bye.txt, then run the command mv hello.txt bye.txt.