[{"data":1,"prerenderedAt":179},["ShallowReactive",2],{"content-query-veuEV39C7C":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"category":5,"createdAt":10,"updatedAt":11,"body":12,"_type":173,"_id":174,"_source":175,"_file":176,"_stem":177,"_extension":178},"/article/server/linux-common-command","server",false,"","Linux 常用指令","這裡列出一些 Linux 常用但又很容易會忘的指令(畢竟工程師要背的東西太多了XD)，列在這邊供平日查詢(陸續更新)。","2022-07-08","2023-08-14",{"type":13,"children":14,"toc":166},"root",[15,22,29,64,69,74,79,85,105,110,130,135,141,160],{"type":16,"tag":17,"props":18,"children":19},"element","p",{},[20],{"type":21,"value":9},"text",{"type":16,"tag":23,"props":24,"children":26},"h2",{"id":25},"取得當前路徑下所有-folder-內總檔案大小",[27],{"type":21,"value":28},"取得當前路徑下所有 folder 內總檔案大小",{"type":16,"tag":30,"props":31,"children":35},"pre",{"className":32,"code":33,"language":34,"meta":7,"style":7},"language-sh shiki shiki-themes material-theme-palenight","du -sh *\n","sh",[36],{"type":16,"tag":37,"props":38,"children":39},"code",{"__ignoreMap":7},[40],{"type":16,"tag":41,"props":42,"children":45},"span",{"class":43,"line":44},"line",1,[46,52,58],{"type":16,"tag":41,"props":47,"children":49},{"style":48},"--shiki-default:#FFCB6B",[50],{"type":21,"value":51},"du",{"type":16,"tag":41,"props":53,"children":55},{"style":54},"--shiki-default:#C3E88D",[56],{"type":21,"value":57}," -sh",{"type":16,"tag":41,"props":59,"children":61},{"style":60},"--shiki-default:#BABED8",[62],{"type":21,"value":63}," *\n",{"type":16,"tag":17,"props":65,"children":66},{},[67],{"type":21,"value":68},"du: Disk Usage",{"type":16,"tag":17,"props":70,"children":71},{},[72],{"type":21,"value":73},"-s: --summarize",{"type":16,"tag":17,"props":75,"children":76},{},[77],{"type":21,"value":78},"-h: --human-readable",{"type":16,"tag":23,"props":80,"children":82},{"id":81},"查看-cpu-資訊",[83],{"type":21,"value":84},"查看 CPU 資訊",{"type":16,"tag":30,"props":86,"children":88},{"className":32,"code":87,"language":34,"meta":7,"style":7},"cat /proc/cpuinfo\n",[89],{"type":16,"tag":37,"props":90,"children":91},{"__ignoreMap":7},[92],{"type":16,"tag":41,"props":93,"children":94},{"class":43,"line":44},[95,100],{"type":16,"tag":41,"props":96,"children":97},{"style":48},[98],{"type":21,"value":99},"cat",{"type":16,"tag":41,"props":101,"children":102},{"style":54},[103],{"type":21,"value":104}," /proc/cpuinfo\n",{"type":16,"tag":23,"props":106,"children":108},{"id":107},"磁碟使用狀況",[109],{"type":21,"value":107},{"type":16,"tag":30,"props":111,"children":113},{"className":32,"code":112,"language":34,"meta":7,"style":7},"df -h\n",[114],{"type":16,"tag":37,"props":115,"children":116},{"__ignoreMap":7},[117],{"type":16,"tag":41,"props":118,"children":119},{"class":43,"line":44},[120,125],{"type":16,"tag":41,"props":121,"children":122},{"style":48},[123],{"type":21,"value":124},"df",{"type":16,"tag":41,"props":126,"children":127},{"style":54},[128],{"type":21,"value":129}," -h\n",{"type":16,"tag":17,"props":131,"children":132},{},[133],{"type":21,"value":134},"會顯示各磁碟總容量(Size)、已使用容量(Used)、可用容量(Avail)...等大小的資訊。",{"type":16,"tag":23,"props":136,"children":138},{"id":137},"linux-版本和作業系統",[139],{"type":21,"value":140},"Linux 版本和作業系統",{"type":16,"tag":30,"props":142,"children":144},{"className":32,"code":143,"language":34,"meta":7,"style":7},"cat /proc/version\n",[145],{"type":16,"tag":37,"props":146,"children":147},{"__ignoreMap":7},[148],{"type":16,"tag":41,"props":149,"children":150},{"class":43,"line":44},[151,155],{"type":16,"tag":41,"props":152,"children":153},{"style":48},[154],{"type":21,"value":99},{"type":16,"tag":41,"props":156,"children":157},{"style":54},[158],{"type":21,"value":159}," /proc/version\n",{"type":16,"tag":161,"props":162,"children":163},"style",{},[164],{"type":21,"value":165},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":167,"depth":167,"links":168},2,[169,170,171,172],{"id":25,"depth":167,"text":28},{"id":81,"depth":167,"text":84},{"id":107,"depth":167,"text":107},{"id":137,"depth":167,"text":140},"markdown","content:article:server:linux-common-command.md","content","article/server/linux-common-command.md","article/server/linux-common-command","md",1766375573979]