linux give all files an extension code example
Example 1: linux give all files an extension
for file in * ; do mv "$file" "$file.md"; done
Example 2: how to add extension to all files terminal
//terminal
for f in * ; do
mv "$f" "$f.js"
done