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