How to copy one file contents to another file in Linux

Originally published at:

I’m a new Linux system user. I don’t know much about the Ubuntu terminal. I have a file named data.txt. How do I copy data.txt file contents to another file called data.backup.txt in CentOS Linux? How do I duplicate file in a Linux-based computer before I make any modification to the original file?

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki