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:How to install MariaDB 10.3 on Ubuntu 18.04 and CentOS 7Using cut on file full of ls -l output to display only filenamesHow To Enable DNS-Over-HTTPS On Chrome, Firefox, Edge, Brave?