Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File renaming Linux

Tags:

linux

rename

I have tried to rename several files on my Linux system. I usedrename 's/foo/bar/g' * All the files that I wish to change are in the current directory. It does not change the name of the files but I think it should. Any help would be appreciated.

like image 693
robertdaleweir Avatar asked Dec 11 '25 11:12

robertdaleweir


1 Answers

An easy way would to do:

mv file2rename newname
like image 130
Tore Lindberg Åbodsvik Avatar answered Dec 13 '25 01:12

Tore Lindberg Åbodsvik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!