What does Linux cp -S or –suffix=SUFFIX option do?

You can take a backup of the destination file/directory before overwriting with the source file/directory using cp -b or –backup options. By default, the backup file name is given a tilde (~) at the end but you can overwrite the usual backup suffix (~) with cp -S or –suffix=SUFFIX option.

Leave a Reply