🐚 Shell File I/O Lesson
📝 Basics
echo "text" > file.txt
— Write text to a file (overwrite)
echo "more" >> file.txt
— Append text to file
cat file.txt
— View file content
rm file.txt
— Delete file
💻 Try It Yourself
echo "Hello World" > hello.txt cat hello.txt echo "More text" >> hello.txt cat hello.txt rm hello.txt cat hello.txt
▶️ Run Simulation
Output will appear here...