for file in *; do mv "$file" "$(basename "$file")yourSuffix"; done;
Exmpale to add an underscore "_" at the end each text file:
for file in *.txt; do mv "$file" "$(basename "$file")_"; done;
for file in *.txt; do mv "$file" "yourPrefix$file"; done;
Exmpale to add an underscore "_" in front of text each file name:
for file in *.txt; do mv "$file" "_$file"; done;
Make sure you run those commands in Bash shell.
find . -type f -exec bash -c 'mv $0 $0yourSuffix' {} \;
Exmpale to add an underscore "_" at the end each text file:
find . -type f -exec bash -c 'mv $0 $0_' {} \;
find . -type f -exec bash -c 'mv $0 yourPrefix$0' {} \;
Exmpale to add an underscore "_" in front of text each file name:
find . -type f -exec bash -c 'mv $0 _$0' {} \;
This will run in any shell and you can easily define the set of files that should be renamed by using the name or iname parameter for find.