Tag: cli
All the articles with the tag "cli".
-
Docker Multi-Stage build 的 intermediate image 留存問題
Docker 17.05 multi-stage build 讓最終 image 保持乾淨,但中繼 image 的存取與除錯需要額外的操作技巧。
-
使用 ssh-copy-id 將 ssh public key 存到遠端 ssh server 上
ssh-copy-id 複製公鑰到遠端 server 的完整用法:指定非預設演算法(ed25519)的 key 與非 22 的 port。
-
MySQL 查詢結果以 JSON 格式輸出
不寫程式也能把 MySQL 查詢結果輸出成 JSON:用 mysql 指令搭配 json_object() 函式,再以 jq 格式化輸出。