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