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 Moodle On Ubuntu 18.04How To Setup Strong Password Policy On Ubuntu 18.04 | 16.04Linux Cheatsheet