102 β€” File Manipulation

Beginner

Learn to create, copy, move, and delete files using essential Linux commands. Master touch, cp, mv, and rm to manage files efficiently and safely.

Learning Objectives

1
Create files with touch
2
Copy files and directories with cp
3
Move and rename files with mv
4
Delete files safely with rm
Step 1

Create a practice workspace

Set up a clean directory for practicing file operations.

Commands to Run

cd ~
mkdir -p shell-practice/backups
cd shell-practice
pwd

What This Does

Create a practice directory with a backups subdirectory. We'll use this safe space to practice file manipulation without risking real files.

Expected Outcome

New shell-practice directory with backups folder inside. pwd confirms you're in ~/shell-practice

Pro Tips

  • 1
    Always practice destructive commands in a test directory first
  • 2
    Use meaningful directory names for organization

Common Mistakes to Avoid

  • ⚠️Practicing file operations in important directories (risk of data loss)
Was this step helpful?

All Steps (0 / 11 completed)