🐧 Learn Linux - เรียนรู้ Linux

Master the World's Most Popular Operating System

เรียนรู้ระบบปฏิบัติการที่ได้รับความนิยมมากที่สุดในโลก

🎯 Linux คืออะไร?
What is Linux?

ภาษาไทย

Linux (อ่านว่า "ลินุกซ์") คือระบบปฏิบัติการ (Operating System) แบบโอเพนซอร์สที่ใช้งานได้ฟรี เปรียบเสมือนสมองของคอมพิวเตอร์ที่ควบคุมการทำงานทุกอย่าง ตั้งแต่การเปิดโปรแกรม การจัดการไฟล์ ไปจนถึงการเชื่อมต่ออินเทอร์เน็ต

Linux ถูกสร้างขึ้นในปี 1991 โดย Linus Torvalds นักศึกษาชาวฟินแลนด์ ปัจจุบัน Linux ใช้งานในทุกที่ ตั้งแต่สมาร์ทโฟน (Android ใช้ Linux), เว็บเซิร์ฟเวอร์ที่ใหญ่ที่สุดในโลก, ซูเปอร์คอมพิวเตอร์, ไปจนถึงสถานีอวกาศนานาชาติ!

English

Linux is a free and open-source operating system. Think of it as the brain of your computer that controls everything from opening programs to managing files and connecting to the internet.

Linux was created in 1991 by Linus Torvalds, a Finnish student. Today, Linux runs everywhere: smartphones (Android uses Linux), the world's biggest web servers, supercomputers, and even the International Space Station!

🌟 Fun Facts About Linux

  • 96.3% of the world's top 1 million web servers run Linux
  • 100% of the world's top 500 supercomputers use Linux
  • Over 3 billion Android devices run on the Linux kernel
  • Linux powers Tesla cars, SpaceX rockets, and Netflix streaming
  • The Linux penguin mascot is named "Tux"

📚 คำศัพท์สำคัญ
Key Vocabulary

🐧 Linux
ลินุกซ์
A free, open-source operating system used worldwide. ระบบปฏิบัติการโอเพนซอร์สที่ใช้งานฟรี
💻 Operating System
ระบบปฏิบัติการ (OS)
Software that manages computer hardware and software resources. ซอฟต์แวร์ที่จัดการฮาร์ดแวร์และซอฟต์แวร์ของคอมพิวเตอร์
🔓 Open Source
โอเพนซอร์ส
Software with source code that anyone can inspect, modify, and enhance. ซอฟต์แวร์ที่ทุกคนสามารถดู แก้ไข และพัฒนาต่อได้
⌨️ Terminal
เทอร์มินัล
A text-based interface for typing commands to control the computer. หน้าต่างที่ใช้พิมพ์คำสั่งเพื่อควบคุมคอมพิวเตอร์
📁 Directory
ไดเรกทอรี (โฟลเดอร์)
A folder that contains files and other directories. โฟลเดอร์ที่เก็บไฟล์และโฟลเดอร์อื่นๆ
🖥️ Command
คำสั่ง
An instruction you type in the terminal to perform an action. คำสั่งที่พิมพ์ในเทอร์มินัลเพื่อให้คอมพิวเตอร์ทำงาน
🌳 Root
รูท (ผู้ดูแลระบบ)
The administrator account with full system access and control. บัญชีผู้ดูแลระบบที่มีสิทธิ์เต็มในการควบคุมทุกอย่าง
📦 Package
แพ็กเกจ
A collection of software files bundled together for easy installation. ชุดของไฟล์ซอฟต์แวร์ที่รวมไว้เพื่อง่ายต่อการติดตั้ง
🔄 Distribution
ดิสทริบิวชัน (ดิสโทร)
A version of Linux with specific software and configurations. Examples: Ubuntu, Fedora, Debian. เวอร์ชันของ Linux ที่มีซอฟต์แวร์และการตั้งค่าเฉพาะ เช่น Ubuntu, Fedora
🐚 Shell
เชลล์
A program that interprets and executes your commands. Bash is the most common shell. โปรแกรมที่แปลและประมวลผลคำสั่ง Bash เป็นเชลล์ที่นิยมที่สุด
🔑 Sudo
ซูโด้
A command that allows you to run programs with administrator privileges. คำสั่งที่ให้คุณรันโปรแกรมด้วยสิทธิ์ผู้ดูแลระบบ
📝 File System
ระบบไฟล์
The way files are organized and stored on your computer. วิธีการจัดระเบียบและเก็บไฟล์ในคอมพิวเตอร์
🔧 Kernel
เคอร์เนล
The core part of Linux that communicates with hardware. ส่วนหลักของ Linux ที่สื่อสารกับฮาร์ดแวร์
🌐 Server
เซิร์ฟเวอร์
A computer that provides services or resources to other computers. คอมพิวเตอร์ที่ให้บริการหรือทรัพยากรแก่คอมพิวเตอร์เครื่องอื่น
🖱️ GUI
จียูไอ (หน้าต่างกราฟิก)
Graphical User Interface - a visual way to interact with your computer using windows and icons. ส่วนติดต่อผู้ใช้แบบกราฟิก - การใช้งานคอมพิวเตอร์ผ่านหน้าต่างและไอคอน
📜 Script
สคริปต์
A file containing a series of commands that can be executed automatically. ไฟล์ที่บรรจุคำสั่งหลายๆ คำสั่งที่สามารถรันอัตโนมัติได้
🔒 Permissions
สิทธิ์การเข้าถึง
Rules that control who can read, write, or execute files. กฎที่ควบคุมว่าใครสามารถอ่าน เขียน หรือรันไฟล์ได้
📡 Process
โพรเซส
A running program or task on your computer. โปรแกรมหรืองานที่กำลังทำงานอยู่ในคอมพิวเตอร์
💾 Virtual Machine
เครื่องเสมือน
A software simulation of a computer that runs inside another computer. การจำลองคอมพิวเตอร์ด้วยซอฟต์แวร์ที่ทำงานภายในคอมพิวเตอร์เครื่องอื่น
⚙️ Configuration
การตั้งค่า
Settings that control how a program or system behaves. การตั้งค่าที่ควบคุมว่าโปรแกรมหรือระบบจะทำงานอย่างไร

🚀 เริ่มต้นใช้งาน Linux
Getting Started with Linux

ทำไมต้องเรียน Linux?

  • ใช้ฟรี 100% ไม่ต้องเสียเงินซื้อลิขสิทธิ์
  • มีความปลอดภัยสูง ไวรัสน้อย
  • ทำงานได้เร็วและเสถียร
  • เป็นทักษะที่บริษัทเทคต้องการ
  • ควบคุมได้ทุกอย่าง ปรับแต่งได้เต็มที่

Why Learn Linux?

Linux is essential for modern technology careers. It's free, secure, fast, and powers most of the internet. Learning Linux opens doors to careers in cybersecurity, cloud computing, DevOps, and software development.

🎯 สามวิธีในการเริ่มต้นเรียน Linux
Three Ways to Start Learning Linux

1วิธีที่ 1: ใช้ Linux บน Android (ง่ายที่สุด!)

ทำไมวิธีนี้ดี: คุณมีสมาร์ทโฟน Android อยู่แล้ว! ไม่ต้องซื้ออุปกรณ์เพิ่ม ติดตั้งแอพง่ายๆ แล้วเริ่มเรียนได้เลย

English: Use Linux on your Android phone! This is the easiest way to start. You already have an Android device, just install an app called Termux and you can begin learning Linux commands immediately.

ขั้นตอน:

  1. เปิด Google Play Store
  2. ค้นหา "Termux"
  3. ติดตั้งแอพ Termux (ฟรี)
  4. เปิดแอพ จะเห็นหน้าต่างสีดำ - นี่คือ Terminal!
  5. ลองพิมพ์คำสั่งแรก: ls

English: Steps to install Termux:

  1. Open the Google Play Store on your Android device
  2. Search for the app called Termux
  3. Install Termux - it's completely free
  4. Open the app - you'll see a black screen called the Terminal
  5. Try your first command: type L S and press Enter
# Your first Linux command! # คำสั่ง Linux แรกของคุณ! ls # This command lists all files in your current directory # คำสั่งนี้แสดงไฟล์ทั้งหมดในโฟลเดอร์ปัจจุบัน
💡 Tip: ใน Termux คุณสามารถติดตั้งโปรแกรมต่างๆ ได้เหมือนใน Linux จริง! ลอง: pkg install python เพื่อติดตั้ง Python

English: In Termux, you can install real Linux programs! Try: pkg install python to install Python programming language.

2วิธีที่ 2: ใช้ Linux ผ่านเว็บเบราว์เซอร์ (ไม่ต้องติดตั้งอะไร!)

ทำไมวิธีนี้ดี: ไม่ต้องติดตั้งอะไรเลย! เปิดเว็บเบราว์เซอร์ (Chrome, Firefox, Safari) แล้วใช้ Linux ได้ทันที เหมาะมากสำหรับการลองใช้งานหรือเรียนที่ไหนก็ได้

English: Use Linux directly in your web browser! No installation required. This method is perfect for trying Linux or learning from anywhere - just open your browser and start practicing.

เว็บไซต์ที่แนะนำ:

  • JSLinux: https://bellard.org/jslinux/ - Linux เต็มรูปแบบในเบราว์เซอร์
  • Copy.sh: https://copy.sh/v86/ - เร็ว รองรับหลายดิสโทร
  • WebVM: https://webvm.io/ - Linux + เครื่องมือสำหรับนักพัฒนา

English: Recommended websites for browser-based Linux:

  • JSLinux - Full Linux system running in your browser
  • Copy dot SH - Fast and supports multiple Linux distributions
  • WebVM - Linux with developer tools included

ขั้นตอน:

  1. เปิดเว็บเบราว์เซอร์
  2. ไปที่ https://copy.sh/v86/ (แนะนำ)
  3. เลือก "Linux" หรือ "Debian" จากรายการ
  4. รอระบบโหลด (ประมาณ 1-2 นาที)
  5. เริ่มใช้งาน Terminal ได้เลย!

English: Steps to use browser Linux:

  1. Open your web browser
  2. Go to copy dot SH slash v86
  3. Choose Linux or Debian from the list
  4. Wait for the system to load - about one to two minutes
  5. Start using the Terminal immediately
⚠️ Warning: ข้อมูลใน Linux แบบเบราว์เซอร์จะหายเมื่อปิดหน้าต่าง ดังนั้นอย่าเก็บไฟล์สำคัญไว้ที่นี่!

English: Browser-based Linux is temporary. When you close the browser, all your files will be lost. Use it for practice only, not for saving important files.

3วิธีที่ 3: ใช้ Linux Virtual Machine บน Windows (เหมาะกับการเรียนจริงจัง)

ทำไมวิธีนี้ดี: ได้ Linux แบบเต็มรูปแบบ! ทำงานได้เร็ว เก็บไฟล์ได้ มีหน้าต่างกราฟิก เหมาะสำหรับคนที่อยากเรียนอย่างจริงจังและลงลึก ใช้ Windows ควบคู่กับ Linux ได้พร้อมกัน!

English: Install a complete Linux system on your Windows computer using a virtual machine! This is the best method for serious learning. You get full Linux features, can save files, and run both Windows and Linux at the same time.

สิ่งที่ต้องมี:

  • คอมพิวเตอร์ Windows (Windows 10 หรือ 11)
  • RAM อย่างน้อย 4GB (แนะนำ 8GB ขึ้นไป)
  • พื้นที่ว่างในฮาร์ดดิสก์ 20GB
  • โปรแกรม VirtualBox (ฟรี!)

English: What you need:

  • A Windows computer running Windows 10 or 11
  • At least 4 gigabytes of RAM, 8 gigabytes recommended
  • 20 gigabytes of free hard drive space
  • VirtualBox software, which is completely free

ขั้นตอนการติดตั้ง:

  1. ดาวน์โหลด VirtualBox จาก https://www.virtualbox.org/
  2. ติดตั้ง VirtualBox (กด Next ไปเรื่อยๆ)
  3. ดาวน์โหลด Ubuntu ISO จาก https://ubuntu.com/download/desktop
  4. เปิด VirtualBox แล้วกด "New" เพื่อสร้างเครื่องเสมือนใหม่
  5. ตั้งชื่อ "Ubuntu", เลือก Type: Linux, Version: Ubuntu (64-bit)
  6. กำหนด RAM 2048MB (หรือมากกว่า)
  7. สร้าง Virtual Hard Disk ขนาด 20GB
  8. เริ่มเครื่องเสมือน แล้วเลือกไฟล์ Ubuntu ISO ที่ดาวน์โหลดมา
  9. ติดตั้ง Ubuntu ตามขั้นตอน (ประมาณ 15-20 นาที)
  10. รีสตาร์ท - เสร็จแล้ว! คุณมี Linux เป็นของตัวเอง!

English: Installation steps:

  1. Download VirtualBox from virtualbox dot org
  2. Install VirtualBox - just keep clicking Next
  3. Download Ubuntu ISO file from ubuntu dot com
  4. Open VirtualBox and click New to create a virtual machine
  5. Name it Ubuntu, select Type Linux, Version Ubuntu 64-bit
  6. Allocate at least 2048 megabytes of RAM
  7. Create a virtual hard disk, 20 gigabytes in size
  8. Start the virtual machine and select your Ubuntu ISO file
  9. Follow the Ubuntu installation wizard - takes about 15 to 20 minutes
  10. Restart - done! You now have your own Linux system
💡 Pro Tip: หลังติดตั้งเสร็จ ให้ติดตั้ง "Guest Additions" เพื่อให้หน้าจอปรับขนาดได้ และทำงานได้เร็วขึ้น! (เมนู Devices → Insert Guest Additions CD Image)

English: After installation, install Guest Additions for better screen resolution and improved performance! Go to Devices menu, then Insert Guest Additions CD Image.

💻 โปรเจกต์แรก: ทำความรู้จักกับคำสั่งพื้นฐาน
First Project: Basic Linux Commands

เป้าหมาย

เรียนรู้ 5 คำสั่งพื้นฐานที่จำเป็นที่สุดใน Linux และสร้างไฟล์แรกของคุณ!

Goal

Learn the 5 most essential Linux commands and create your first file!

1คำสั่ง pwd - รู้ว่าคุณอยู่ที่ไหน

pwd ย่อมาจาก "Print Working Directory" แปลว่า "บอกว่าตอนนี้เราอยู่โฟลเดอร์ไหน"

English: pwd stands for Print Working Directory. It tells you which folder you are currently in. This is your current location in the file system.

pwd # Output: /home/yourname # แสดง: /home/yourname (บ้านของคุณใน Linux)

2คำสั่ง ls - ดูว่ามีไฟล์อะไรบ้าง

ls ย่อมาจาก "List" แปลว่า "แสดงรายการไฟล์ทั้งหมด" เหมือนเปิดโฟลเดอร์ดูข้างใน

English: ls stands for List. It shows all the files and folders in your current directory. Like opening a folder to see what's inside.

ls # Shows files and folders # แสดงไฟล์และโฟลเดอร์ ls -la # Shows ALL files including hidden ones, with details # แสดงไฟล์ทั้งหมด รวมไฟล์ซ่อน พร้อมรายละเอียด

3คำสั่ง mkdir - สร้างโฟลเดอร์ใหม่

mkdir ย่อมาจาก "Make Directory" แปลว่า "สร้างโฟลเดอร์"

English: mkdir stands for Make Directory. It creates a new folder. Let's create a folder called my-first-linux-project.

mkdir my-first-linux-project # Creates a new folder named "my-first-linux-project" # สร้างโฟลเดอร์ใหม่ชื่อ "my-first-linux-project"

4คำสั่ง cd - เข้าไปในโฟลเดอร์

cd ย่อมาจาก "Change Directory" แปลว่า "ย้ายไปโฟลเดอร์อื่น"

English: cd stands for Change Directory. It moves you into a different folder. Let's enter the folder we just created.

cd my-first-linux-project # Now you're inside the new folder! # ตอนนี้คุณอยู่ในโฟลเดอร์ใหม่แล้ว! pwd # Check your new location # ตรวจสอบว่าคุณอยู่ที่ไหน

5คำสั่ง touch - สร้างไฟล์ใหม่

touch ใช้สร้างไฟล์เปล่าๆ ใหม่ มาสร้างไฟล์แรกของคุณกัน!

English: touch creates a new empty file. Let's create your first file called hello dot text.

touch hello.txt # Creates a new file named "hello.txt" # สร้างไฟล์ใหม่ชื่อ "hello.txt" ls # You'll see your new file! # คุณจะเห็นไฟล์ใหม่ของคุณ!

🎉 ยินดีด้วย! Congratulations!

คุณเพิ่งเรียนรู้คำสั่ง Linux 5 คำสั่งพื้นฐานและสร้างโฟลเดอร์พร้อมไฟล์แรกของคุณแล้ว!

You just learned 5 basic Linux commands and created your first folder and file!

คำสั่งเหล่านี้จะใช้ทุกวันในการทำงานจริง

These commands are used every single day in real work!

🚀 ขั้นต่อไป
Next Steps

สิ่งที่คุณได้เรียนรู้

  • Linux คืออะไรและทำไมถึงสำคัญ
  • คำศัพท์พื้นฐาน 20 คำ
  • 3 วิธีในการเริ่มใช้ Linux
  • 5 คำสั่งที่จำเป็นที่สุด
  • การสร้างโฟลเดอร์และไฟล์

What You Learned

  • What Linux is and why it matters
  • 20 essential vocabulary terms
  • Three ways to start using Linux
  • Five most important commands
  • How to create folders and files

🎓 พร้อมก้าวต่อไปแล้ว!
Ready for the Next Level!

ตอนนี้คุณรู้พื้นฐานแล้ว มาเรียนรู้เทคนิคขั้นสูงกัน!

Now that you know the basics, let's learn advanced techniques!

ไปที่ Advanced Linux Tutorials

แล้วอย่าลืมทำ Linux Exam เพื่อทดสอบความรู้!