Now we will see how the preceding commands work:
- We used the dd command to copy the contents of the 01.txt file into the 02.txt file.
- To run this command, we must have super user privileges. Using the dd command, we took a backup and stored it in the hdbackup.img file.
- Using the dd command, we erased the contents of the 1.sh file.