Software, settings, next steps · ซอฟต์แวร์ การตั้งค่า ขั้นตอนถัดไป
Installing software
- On Linux you rarely download installers. A package manager fetches and installs software for you.
- Debian and Ubuntu use
apt; Fedora usesdnf; macOS users often addbrew:
- One command, and the tool (and anything it needs) is installed and ready.
การติดตั้งซอฟต์แวร์
- บน Linux คุณแทบจะไม่ดาวน์โหลดไฟล์ติดตั้ง package manager ดึงและติดตั้งsoftwareให้คุณเอง
- Debian และ Ubuntu ใช้
apt; Fedora ใช้dnf; ผู้ใช้ macOS มักเพิ่มbrew:
sudo apt update
sudo apt install git
- คำสั่งเดียว และเครื่องมือ (รวมถึงทุกอย่างที่มันต้องการ) จะติดตั้งและพร้อมใช้งาน
Installing with a package manager · ติดตั้งด้วย package manager
apt update refreshes the catalogue, apt install fetches the tool and its needs. · apt update อัปเดตแคตตาล็อก, apt install ดึงเครื่องมือและความจำเป็นของมัน
The environment
- The shell remembers settings in environment variables. The most important is
PATH— the list of folders it searches for commands. - Your personal settings live in a file called
.bashrcin your home folder. Editing it lets you create shortcuts (aliases) and change how the shell behaves.
Environment
- Shell จำค่าตั้งค่าใน environment variables. สิ่งที่สำคัญที่สุดคือ
PATH— รายการโฟลเดอร์ที่มันค้นหาสำหรับคำสั่ง - การตั้งค่าส่วนตัวของคุณอยู่ในไฟล์ชื่อ
.bashrcในโฟลเดอร์ home ของคุณ การแก้ไขไฟล์นี้จะช่วยให้คุณสร้างทางลัด (aliases) และเปลี่ยนพฤติกรรมของ shell ได้
Where to go next
- You now know how to navigate, read, search, combine, and manage files — the core of the command line.
- Keep a real terminal open and use it for small tasks; speed comes with habit.
- Next steps: learn
gitfor version control, a text editor likenanoorvim, and a little shell scripting to automate your favourite commands. Well done!
ขั้นตอนต่อไป
- ตอนนี้คุณรู้วิธีการนำทาง อ่าน ค้นหา รวม และจัดการไฟล์ — ซึ่งเป็นหัวใจหลักของ command line
- เปิด terminal จริงไว้และใช้งาน它为small tasks; ความเร็วมาจากการฝึกฝน
- ขั้นตอนต่อไป: เรียนรู้
gitสำหรับversion control, text editor อย่างnanoหรือvim, และshell scripting เล็กน้อยเพื่อautomateคำสั่งโปรดของคุณ ทำได้ดีมาก!
Now you try
aptneeds the real internet, so it is not in our simulator — but a list of installed packages is saved ininstalled.txt.- Use the tools from this course to
sortthe list andwcto count it. The same handful of commands work on any text data.
ลองดูเลย
aptต้องการอินเทอร์เน็ตจริงดังนั้นจึงไม่มี在我们的จำลอง — แต่รายการpackage ที่ติดตั้งแล้วถูกบันทึกไว้ในinstalled.txt- ใช้เครื่องมือจากcourse นี้เพื่อ
sortรายการและwcเพื่อนับจำนวน Same handful of commands work on any text data
Common mistakes
- Read a command's
--helpormanpage before using unfamiliar options. - Test a risky command on a copy of your files first.
ข้อผิดพลาดที่พบบ่อย
- อ่านหน้าคู่มือ
--helpหรือmanของคำสั่งก่อนใช้ตัวเลือกที่ไม่คุ้นเคย - ทดสอบคำสั่งที่มีriskกับcopyของไฟล์คุณก่อน
apt list --installed is a real command, not part of our simulator — but here its output is saved in installed.txt. Put the package names in alphabetical order with sort installed.txt. · apt list --installed เป็นคำสั่งจริง ไม่ใช่ส่วนหนึ่งของซิมูลเตอร์ของเรา — แต่ในที่นี้ผลลัพธ์จะถูกบันทึกไว้ใน installed.txt เรียงชื่อแพ็กเกจตามตัวอักษรโดยใช้ sort installed.txt
How many packages are installed? Count the lines with cat installed.txt | wc -l — the same file tools work on any data. · มี package ติดตั้งอยู่กี่ตัว? นับบรรทัดที่มี cat installed.txt | wc -l — เครื่องมือไฟล์เดียวกันนี้ใช้กับข้อมูลใดก็ได้