linux add file extension to multiple files code example Example: linux give all files an extension for file in * ; do mv "$file" "$file.md"; done