FILE: materi-17.module

Linux untuk DevOps

Skill paling fundamental. File system, command line, permissions, services.

RUNTIME: 26m LEVEL: beginner STATUS: ACTIVE
terminal -- root@cyber root@cyber:~ # nmap -sV target.com Starting Nmap scan... PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 443/tcp open https root@cyber:~ # [+] Scan completed - 3 open ports detected

1. Mengapa Linux

99 persen server di internet jalankan Linux. Open source, stabil, secure, customizable. DevOps engineer tanpa Linux skill = chef tanpa pisau. Wajib master command line.

2. File System

Hierarki: / (root), /home (user), /etc (config), /var/log (logs), /usr (programs), /tmp (temp). Setiap file punya owner, group, permissions. Hidden file mulai dengan titik.

3. Essential Commands

ls cd pwd cp mv rm mkdir. cat less grep tail head. ps top kill. df du free. systemctl untuk services. crontab untuk scheduled task. man untuk help.

4. File Permissions

rwx untuk owner, group, others. chmod ubah permission. chown ubah owner. 755 untuk script, 644 untuk file. Jangan pernah 777 di production.

5. Process dan Services

Setiap program adalah process dengan PID. systemd manage services modern. systemctl start, stop, restart, status. journalctl untuk logs.

Practical Mission

  1. Install Ubuntu di VM atau dual boot
  2. Hafal 30 command Linux dasar
  3. Pelajari vim atau nano editor
  4. Setup web server (nginx) sederhana
  5. Selesaikan Linux Journey di OverTheWire

Recap Module