Week 2 of 12 🔧
เครื่องมือหลัก: Read, Write และ Edit
核心工具:Read、Write 和 Edit
Click a card to flip it. คลิกการ์ดเพื่อพลิก 点击卡片翻面。
Which tool creates a new file?
เครื่องมือใดสร้างไฟล์ใหม่?
哪个工具可以创建新文件?
What does 'It reads the file' use?
'It reads the file' ใช้ tense อะไร?
'It reads the file' 用的是什么时态?
Which tool needs permission?
เครื่องมือใดต้องการสิทธิ์?
哪个工具需要权限?
How to do it
Read tool and shows the file with line numbers.How to do it
How to do it
How to do it
How to do it
y to approve, n to reject. You can also choose "don't ask again" for this session.Step by step
claude in a test folder (make one with mkdir test && cd test).y.✓ You did it right if: greeting.txt shows two lines — your hello and your goodbye.
> Create a file called greeting.txt with a hello message
* Write(greeting.txt)
1 Hello from Chiang Mai!
Allow? (y/n) > y
Created greeting.txt
> Add a second line to greeting.txt that says goodbye
* Edit(greeting.txt)
Hello from Chiang Mai!
+ Goodbye, see you tomorrow!
Allow? (y/n) > y
Edited greeting.txt - only the shown lines changed
> Read greeting.txt
1 Hello from Chiang Mai!
2 Goodbye, see you tomorrow!
| Command / Tool | English | ภาษาไทย | 中文 |
|---|---|---|---|
Read | View file contents (up to 2000 lines) | ดูเนื้อหาไฟล์ (สูงสุด 2000 บรรทัด) | 查看文件内容(最多 2000 行) |
Write | Create or overwrite a file | สร้างหรือเขียนทับไฟล์ | 创建或覆盖文件 |
Edit | Replace specific text in a file | แทนที่ข้อความเฉพาะในไฟล์ | 替换文件中的特定文本 |
Bash | Run shell commands | รันคำสั่งเชลล์ | 运行 shell 命令 |
Drive the Read / Write / Edit loop yourself — including the diff and the y/n gate. / ลองใช้ Read / Write / Edit ด้วยตัวเอง / 亲手试试 Read / Write / Edit 工具
The file on disk: greeting.txt
Read shows the file instantly. Edit shows a diff and waits for your y / n — nothing changes until you approve.