how to rename a file from terminal in ubuntu code example Example: change file name in terminal rename 's/.prog/.prg/' *.prog