$
Linux Practice
Practice
Tutorials
English
한국어
日本語
中文
terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user
@linux:
~
$
Copying and Moving Files
Reset Lesson
Learn to copy and move files with cp and mv.
Step 1
Copy readme.txt to create a backup: cp documents/readme.txt documents/readme-backup.txt.
Type: cp documents/readme.txt documents/readme-backup.txt
cp documents/readme.txt documents/readme-backup.txt
Step 2
Verify the copy by listing the documents directory.
Step 3
Rename the backup file using mv: mv documents/readme-backup.txt documents/backup.txt.
Step 4
Copy the project directory recursively: cp -r documents/project documents/project-backup.