{
 "程序與 PID:ps 與 top#2": {
  "type": "flow",
  "nodes": [
   {
    "label": "程式",
    "sub": "硬碟上的檔案"
   },
   {
    "label": "載入記憶體",
    "sub": "開始運作"
   },
   {
    "label": "程序",
    "sub": "執行中的程式",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   2,
   3
  ]
 },
 "程序與 PID:ps 與 top#3": {
  "type": "cards",
  "cards": [
   {
    "title": "PID",
    "points": [
     "程序編號"
    ]
   },
   {
    "title": "PPID",
    "points": [
     "父程序的編號"
    ]
   },
   {
    "title": "PID 1",
    "points": [
     "systemd",
     "第一個程序"
    ]
   },
   {
    "title": "擁有者",
    "points": [
     "啟動它的使用者"
    ]
   }
  ],
  "reveal": [
   1,
   2,
   3,
   4
  ]
 },
 "程序與 PID:ps 與 top#4": {
  "type": "table",
  "head": [
   "欄位",
   "意義"
  ],
  "rows": [
   [
    "PID",
    "程序編號"
   ],
   [
    "TTY",
    "連接的終端機"
   ],
   [
    "TIME",
    "累計佔用 CPU 的時間"
   ],
   [
    "CMD",
    "啟動的指令"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "程序與 PID:ps 與 top#6": {
  "type": "table",
  "head": [
   "USER",
   "PID",
   "TTY",
   "CMD"
  ],
  "rows": [
   [
    "root",
    "1",
    "?",
    "/sbin/init"
   ],
   [
    "student",
    "1042",
    "pts/0",
    "-bash"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   2
  ]
 },
 "結束程序:訊號、kill 與前景背景#2": {
  "type": "table",
  "head": [
   "編號",
   "名稱",
   "意義"
  ],
  "rows": [
   [
    "1",
    "SIGHUP",
    "終端機關閉/重新載入"
   ],
   [
    "2",
    "SIGINT",
    "中斷(Ctrl+C)"
   ],
   [
    "9",
    "SIGKILL",
    "強制殺死,無法善後"
   ]
  ],
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ]
 },
 "結束程序:訊號、kill 與前景背景#3": {
  "type": "table",
  "head": [
   "編號",
   "名稱",
   "意義"
  ],
  "rows": [
   [
    "15",
    "SIGTERM",
    "請求結束(預設)"
   ],
   [
    "19",
    "SIGSTOP",
    "暫停程序"
   ]
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "結束程序:訊號、kill 與前景背景#5": {
  "type": "table",
  "head": [
   "指令",
   "作用"
  ],
  "rows": [
   [
    "kill 4321",
    "送 15,請它結束"
   ],
   [
    "kill -15 4321",
    "同上,明確寫出"
   ],
   [
    "kill -9 4321",
    "強制殺死"
   ],
   [
    "kill -l",
    "列出所有訊號"
   ],
   [
    "pkill nginx",
    "依名稱送訊號"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "結束程序:訊號、kill 與前景背景#6": {
  "type": "cards",
  "cards": [
   {
    "title": "資料遺失",
    "points": [
     "或檔案損毀"
    ]
   },
   {
    "title": "殘留檔案",
    "points": [
     "暫存檔與鎖定檔沒清乾淨"
    ]
   },
   {
    "title": "子程序變孤兒",
    "points": [
     "繼續佔用資源"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "結束程序:訊號、kill 與前景背景#7": {
  "type": "table",
  "head": [
   "訊息",
   "意思"
  ],
  "rows": [
   [
    "No such process",
    "這個編號的程序不存在"
   ],
   [
    "Operation not permitted",
    "不是你的程序"
   ]
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "磁碟、記憶體與系統資訊#3": {
  "type": "bar",
  "labels": [
   "總容量",
   "已使用"
  ],
  "values": [
   40,
   12
  ],
  "unit": "G",
  "highlight": 1,
  "reveal": [
   0,
   0,
   0,
   2,
   2
  ]
 },
 "磁碟、記憶體與系統資訊#6": {
  "type": "table",
  "head": [
   "項目",
   "大小"
  ],
  "rows": [
   [
    "notes.txt",
    "4K"
   ],
   [
    "project",
    "1.2M"
   ],
   [
    "videos",
    "3.4G"
   ]
  ],
  "reveal": [
   2,
   3
  ]
 },
 "磁碟、記憶體與系統資訊#7": {
  "type": "cards",
  "cards": [
   {
    "title": "free 很小",
    "points": [
     "不代表有問題",
     "閒置記憶體拿來當快取"
    ]
   },
   {
    "title": "看 available",
    "points": [
     "不動用 swap 還能分配的量"
    ]
   },
   {
    "title": "大量用 swap",
    "points": [
     "通常是實體記憶體不夠"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 }
}