Module 4 – Labs
TH: รวบรวม Lab เพื่อให้ผู้เรียนได้ลงมือทำจริงจากสิ่งที่เรียนมาแล้ว
EN: Collection of hands-on labs to practice what has been learned.
TH: รวบรวม Lab เพื่อให้ผู้เรียนได้ลงมือทำจริงจากสิ่งที่เรียนมาแล้ว
EN: Collection of hands-on labs to practice what has been learned.
Lab – Navigation and Files TH – เป้าหมาย ผู้เรียนสามารถใช้ pwd, ls, cd, cp, mv, rm ได้อย่างถูกต้อง ผู้เรียนเข้าใจโครงสร้างโฟลเดอร์ในระบบจริง EN – Goals Use pwd, ls, cd, cp, mv, rm confidently Understand real directory layout TH – โจทย์ตัวอย่าง สร้างโฟลเดอร์สำหรับงานของตัวเองใน home และสร้างไฟล์ตัวอย่างภายใน คัดลอกไฟล์ไปอีกโฟลเดอร์หนึ่ง ย้ายไฟล์และลบไฟล์ที่ไม่ต้องการ EN – Tasks Create a working directory in your home and create some files Copy files to another directory Move and remove files as required
Lab – Basic Log Analysis TH – เป้าหมาย ผู้เรียนสามารถเปิดดู log พื้นฐาน สามารถค้นหา error หรือข้อความที่น่าสนใจใน log ได้ EN – Goals Open and read basic logs Search for errors or interesting events in logs TH – โจทย์ตัวอย่าง ใช้ journalctl ดู log ล่าสุด ใช้ grep ค้นหาคำว่า “error” หรือ “fail” ใน log หนึ่งไฟล์ ให้ผู้เรียนอธิบายว่าข้อความที่พบอาจสื่อถึงปัญหาอะไร EN – Tasks Use journalctl to view recent logs Use grep to find “error” or “fail” in a log file Ask learners to interpret what the messages might indicate