Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

Explore the world of seamless email management with Zimbra Mail on Linux! Our blog delves into a step-by-step guide on harnessing the potential of Linux commands, providing easy-to-follow how-tos, and unlocking the magic of Bash scripting. Simplify your email administration journey and enhance your skills with our insightful tips and tricks.

rename command in linux

rename command similar with mv command. This command is slightly more advanced than mv  command. How to rename multiple files in linux.

The syntax rename command

rename [options] expression replacement-file

For example, basic use rename command
[huupv@huupv huuphan.com]$  rename file huu file1.txt

The same output

rename command in linux


How to rename all file extension .txt to .atxt file
[huupv@huupv huuphan.com]$ rename .txt .atxt *.txt

The same output

rename command in linux 2

Use option --verbose in rename command
[huupv@huupv huuphan.com]$ rename -v foo huu foo?.atxt

The same ouput
`foo2.atxt' -> `huu2.atxt'
`foo3.atxt' -> `huu3.atxt'

Details more information rename command

man rename

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com

This Blog is protected by DMCA.com