rename ubuntu terminal code example
Example 1: rename command ubuntu
cd /home/user/docs/files
mv file1.txt file2.txt
Example 2: change file name in terminal
rename 's/.prog/.prg/' *.prog
cd /home/user/docs/files
mv file1.txt file2.txt
rename 's/.prog/.prg/' *.prog