for file in * ; do mv "$file" "$file.md"; done
Here is what the above code is Doing:
1. It’s changing the current directory to the one you want to work in.
2. It’s looping through all the files in the directory.
3. It’s renaming each file by appending “.md” to the end of the file name.