Make backup before overwriting file with cp
Ordinary way:
cp /etc/hosts ~
With backups way:
cp --backup=numbered /etc/hosts ~
Verify:
cd ls -l hosts*