how to rename a file in ubuntu using terminal

Shell
mv oldnamefile1 newnamefile1
Source

Also in Shell: