SSH rename command

When you wish to change multiple files’ names you can use the SSH rename command. It is very handy when it comes to the bulk file renaming. In this article, we will cover the basic usage of the SSH rename command with examples.

Linux rename to change extensions with SSH

This will change all .txt files to have .pdf extension

rename 's/\.txt$/.pdf/' *

Showing output with SSH rename command

If you wish to see what’s being done you can apply the -v option

rename -v

A nice alternative to rename is the mv command, you can read more on it from here: https://www.webhostface.com/kb/knowledgebase/linux-mv-command/

You can master the most popular SSH Commands for Experts and Beginners on our Dedicated Servers or SSD VPS machines. Order an SSH Shared hosting account with a great price discount – now with 40% OFF the regular price.

WebHostFace

Share
Published by
WebHostFace