Introduction
In this challenge, you will learn how to delete, copy, and move files in Linux systems using common command-line utilities.
Achievements
By completing this challenge, you will gain practical experience with the following commands:
rm- remove files or directoriescp- copy files or directoriesmv- move files or directories
Delete Files
In this step, we'll use the rm command to remove files from a Linux system.
A folder named challenge1 has been created in /home/labex/project. It contains a file named challenge1.txt. Your task is to delete this file using the rm command.
TODO
Delete the file challenge1.txt from /home/labex/project/challenge1/challenge1.txt.
Requirements
- Work in the Linux terminal, starting from the
/home/labex/project/challenge1directory. - Use the
rmcommand to remove thechallenge1.txtfile.
Copy Files
In this step, we'll use the cp command to copy files in a Linux system.
A folder named challenge2 has been created in /home/labex/project. It contains a file named challenge2.txt. Your task is to copy this file to the challenge1 directory using the cp command.
TODO
Copy the file /home/labex/project/challenge2/challenge2.txt to the /home/labex/project/challenge1 directory.
Requirements
- Work in the Linux terminal, starting from the
/home/labex/project/challenge2directory. - Use the
cpcommand to copy thechallenge2.txtfile.
Move Files
In this step, we'll use the mv command to move files in a Linux system.
A folder named challenge3 has been created in /home/labex/project. It contains a file named challenge3.txt. Your task is to move this file to the challenge1 directory using the mv command.
TODO
Move the file /home/labex/project/challenge3/challenge3.txt to the /home/labex/project/challenge1 directory.
Requirements
- Work in the Linux terminal, starting from the
/home/labex/project/challenge3directory. - Use the
mvcommand to move thechallenge3.txtfile.
Summary
Congratulations! You have successfully completed the file operations challenge. In this exercise, you've practiced three essential file manipulation commands: rm, cp, and mv. These commands are frequently used in Linux systems, so it's crucial to be familiar with them.
You've learned how to:
- Delete files using
rm - Copy files using
cp - Move files using
mv
These skills form the foundation of file management in Linux environments. Keep practicing and exploring more advanced uses of these commands to become proficient in Linux file operations.



