2.Practicing Basic Linux Commands
2.Practicing Basic Linux Commands
Student Activity
Student Activity: Practicing Basic Linux Commands
Objective: This activity is designed to help beginners practice and understand basic Linux
commands by applying them in a real Linux environment. By the end of this activity, students
should be comfortable navigating the Linux file system and performing basic file operations.
1. Objective: Move example.txt from the current directory to the project directory.
Command: mv example.txt project/
Expected Output: example.txt is moved to the project directory.
2. Example 2: Renaming Files with mv
3. Objective: Rename example.txt to sample.txt within the project directory.
Command: mv project/example.txt project/sample.txt
Expected Output: example.txt is renamed to sample.txt in the project
directory.
4. Example 3: Removing Files with rm
5. Objective: Delete sample.txt from the project directory.
Command: rm project/sample.txt
Expected Output: sample.txt is deleted from the project directory.
Conclusion
By completing these exercises, students will gain hands-on experience with basic Linux
commands, enhancing their understanding of the Linux file system and command-line
operations. Encourage students to explore further by creating more files and directories,
experimenting with different commands, and asking questions if they encounter any issues.
Happy practicing!