03 Feb How to replace spaces in all file names with underscore in Linux using shell script? by kayals in Linux, System AdministrationComments for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done Related posts:Resetting root password in vCenter Server Appliance 6.5 - 7.xPi-Hole, VPN Server, Static Anycast IP on Google Cloud's Free Usage TierUpgrade PHP 7.2.x to 7.4.x in centOS