how to add extension to all files terminal code example Example: how to add extension to all files terminal //terminal for f in * ; do mv "$f" "$f.js" done