Copy File in Shell

Level 122 keystrokes

cp copies a file to a new location or name.

Shell code

# cp = copy: cp SOURCE DESTINATION
# Creates backup.txt as a copy of file.txt (overwrites it if it exists)
1cp file.txt backup.txt
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Shell code and how often they appear.

  • .× 2

More Shell examples at level 1

← Shell typing practice