Ten Simple Commands to Check Your Disk Space
The ‘du’ command in Linux is a standard Unix/Linux command to check the capacity of…
This guide will illustrate how to retitle files in Linux.
Retitling files in Linux can be done in several ways, using either command-line tools or file managers. You will explore some of the common methods with examples here.
mv old_filename new_filename
mv report.txt checked_report.txt
This renames ‘report.txt’ to ‘checked_report.txt’ in the current directory.
Note: If you specify a different path, the file will be moved instead of just retitled.
rename ‘s/old_pattern/new_pattern/’ files
rename ‘s/.txt/.bak/’ *.txt
This retitles all ‘.txt’ files in the directory to ‘.bak’.
sudo apt install rename # Debian/Ubuntu sudo yum install rename # CentOS/RHEL
mmv “*.jpg” “image_#1.jpg”
This renames all ‘.jpg’ files with a prefix ‘image_’.
sudo apt install mmv # Debian/Ubuntu
This way, you can retitle files in Linux and choose the method that best fits your needs, whether it’s a quick single rename or bulk changes.
Learn more tutorial: How to Edit the Hosts File in Windows, macOS, and Linux.
Explore more hosting insights, tips and industry updates.
The ‘du’ command in Linux is a standard Unix/Linux command to check the capacity of…
This tutorial will help you to successfully make a poll for your website Making a…
When you browse something in your web browser, a cache of the websites you visit…