{
 "提高效率的技巧#2": {
  "type": "flow",
  "nodes": [
   {
    "label": "cd Doc",
    "sub": "只打開頭"
   },
   {
    "label": "按 Tab",
    "sub": "自動補完"
   },
   {
    "label": "cd Documents/",
    "sub": "補完",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "提高效率的技巧#3": {
  "type": "table",
  "head": [
   "按鍵/指令",
   "作用"
  ],
  "rows": [
   [
    "↑ / ↓",
    "翻看輸入過的指令"
   ],
   [
    "history",
    "列出歷史指令與編號"
   ],
   [
    "!!",
    "重複上一個指令"
   ],
   [
    "!編號",
    "執行該編號的指令"
   ],
   [
    "Ctrl+R",
    "反向搜尋歷史"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   4,
   5
  ]
 },
 "提高效率的技巧#4": {
  "type": "table",
  "head": [
   "快捷鍵",
   "作用"
  ],
  "rows": [
   [
    "Ctrl+C",
    "中斷目前的程式"
   ],
   [
    "Ctrl+L",
    "清除畫面"
   ],
   [
    "Ctrl+D",
    "輸入結束,通常登出"
   ],
   [
    "Ctrl+A / E",
    "跳到行首 / 行尾"
   ],
   [
    "Ctrl+U",
    "刪除游標前整行"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "提高效率的技巧#5": {
  "type": "cards",
  "cards": [
   {
    "title": ";  分號",
    "points": [
     "不管成功與否",
     "後一個都會執行"
    ]
   },
   {
    "title": "&&  而且",
    "points": [
     "前一個成功才執行",
     "失敗就不往下做"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   2,
   2,
   2
  ]
 },
 "提高效率的技巧#7": {
  "type": "cards",
  "cards": [
   {
    "title": "--help",
    "points": [
     "簡短用法",
     "例如 ls --help"
    ]
   },
   {
    "title": "man",
    "points": [
     "完整說明書",
     "例如 man ls"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "安全使用 Linux#2": {
  "type": "table",
  "head": [
   "危險寫法",
   "風險"
  ],
  "rows": [
   [
    "rm -rf",
    "遞迴刪除且不詢問"
   ],
   [
    ">",
    "覆蓋檔案原內容"
   ],
   [
    "chmod -R 777",
    "整個目錄樹全開放"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "安全使用 Linux#3": {
  "type": "table",
  "head": [
   "危險寫法",
   "風險"
  ],
  "rows": [
   [
    "root / sudo 亂用",
    "略過幾乎所有權限檢查"
   ],
   [
    "dd、mkfs",
    "寫錯裝置,整顆硬碟資料消失"
   ]
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "安全使用 Linux#4": {
  "type": "table",
  "head": [
   "指令",
   "結果"
  ],
  "rows": [
   [
    "rm -rf ~/project/tmp",
    "只刪 tmp"
   ],
   [
    "rm -rf ~/project /tmp",
    "project 與 /tmp 都被刪"
   ]
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "安全使用 Linux#6": {
  "type": "flow",
  "nodes": [
   {
    "label": "curl | sudo bash",
    "sub": "下載後直接執行"
   },
   {
    "label": "curl 存成檔案",
    "sub": "先下載腳本"
   },
   {
    "label": "cat 讀內容",
    "sub": "確認沒問題再執行",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "安全使用 Linux#7": {
  "type": "cards",
  "cards": [
   {
    "title": "刪除前先 ls",
    "points": [
     "確認列出的就是要刪的"
    ]
   },
   {
    "title": "多用 pwd",
    "points": [
     "確認所在目錄"
    ]
   },
   {
    "title": "rm -i",
    "points": [
     "逐一詢問再刪"
    ]
   },
   {
    "title": "備份",
    "points": [
     "改設定前先複製一份"
    ]
   },
   {
    "title": "最小權限",
    "points": [
     "只給剛好需要的權限"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "自學與排錯#2": {
  "type": "table",
  "head": [
   "錯誤訊息",
   "意思"
  ],
  "rows": [
   [
    "command not found",
    "指令打錯或沒安裝"
   ],
   [
    "No such file or directory",
    "路徑或檔名錯"
   ],
   [
    "Permission denied",
    "沒有權限,用 ls -l 檢查"
   ],
   [
    "Is a directory",
    "目錄與檔案用錯"
   ],
   [
    "Directory not empty",
    "rmdir 只能刪空目錄"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "自學與排錯#4": {
  "type": "table",
  "head": [
   "方法",
   "用途"
  ],
  "rows": [
   [
    "--help",
    "簡短用法"
   ],
   [
    "man",
    "完整說明書"
   ],
   [
    "man -k / apropos",
    "用關鍵字找指令"
   ],
   [
    "type",
    "內建、別名或外部程式"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "自學與排錯#5": {
  "type": "flow",
  "nodes": [
   {
    "label": "複製完整錯誤",
    "sub": "去掉個人資料"
   },
   {
    "label": "加上環境資訊",
    "sub": "發行版、版本、指令"
   },
   {
    "label": "說清楚三件事",
    "sub": "目標、輸入、結果",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "自學與排錯#7": {
  "type": "cards",
  "cards": [
   {
    "title": "測試目錄",
    "points": [
     "sandbox 裡放假檔案"
    ]
   },
   {
    "title": "先複製再改",
    "points": [
     "cp -r"
    ]
   },
   {
    "title": "虛擬機或容器",
    "points": [
     "或模擬環境"
    ]
   },
   {
    "title": "先做讀取",
    "points": [
     "ls、cat、help"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 }
}