4 Star 24 Fork 0

叁金/DocumentationAndTutorials

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Linux命令参考.html 180.96 KB
Copy Edit Raw Blame History
叁金 authored 2021-11-04 08:37 +08:00 . Git 配置
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>Linux命令参考</title>
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<div id="img-content" class="rich_media_wrp">
<div class="rich_media_content " id="js_content" style="visibility: visible;">
<section data-role="outer" label="Powered by 135editor.com">
<section data-tool="mdnice编辑器" data-website="https://www.mdnice.com" data-mpa-powered-by="yiban.io"
style="padding: 5px;max-width: 100%;background-color: rgb(255, 255, 255);text-size-adjust: auto;line-height: 1.6;word-break: break-word;text-align: left;font-size: 16px;color: rgb(53, 53, 53);word-spacing: 0.8px;letter-spacing: 0.8px;border-radius: 16px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<h2 data-tool="mdnice编辑器"
style="margin-top: 10px;margin-right: 10px;margin-bottom: 20px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">查看Linux系统信息</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示机器的处理器架构(1)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">uname&nbsp;-m&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示机器的处理器架构(2)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">uname&nbsp;-r&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示正在使用的内核版本</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dmidecode&nbsp;-q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示硬件系统部件&nbsp;-&nbsp;(SMBIOS&nbsp;/&nbsp;DMI)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">hdparm&nbsp;-i&nbsp;/dev/hda&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#罗列一个磁盘的架构特性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">hdparm&nbsp;-tT&nbsp;/dev/sda&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在磁盘上执行测试性读取操作</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/cpuinfo&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示CPU&nbsp;info的信息</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/interrupts&nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示中断</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/meminfo&nbsp;&nbsp;&nbsp;&nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#校验内存使用</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/swaps&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示哪些swap被使用</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/version&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示内核的版本</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/net/dev&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示网络适配器及统计</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;/proc/mounts&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示已加载的文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">lspci&nbsp;-tv&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#罗列PCI设备</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">lsusb&nbsp;-tv&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示USB设备</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">date
显示系统日期</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">cal&nbsp;2007&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示2007年的日历表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">date&nbsp;041217002007.00&nbsp;&nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置日期和时间&nbsp;-&nbsp;月日时分年.秒</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">clock&nbsp;-w&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将时间修改保存到&nbsp;BIOS</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">关机</span><span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">(关机、重启、登出
)</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">shutdown&nbsp;-h&nbsp;now &nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#关闭系统(1)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">init&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#关闭系统(2)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">telinit&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#关闭系统(3)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">shutdown&nbsp;-h&nbsp;hours:minutes&nbsp;&amp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#按预定时间关闭系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">shutdown&nbsp;-c&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#取消按预定时间关闭系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">shutdown&nbsp;-r&nbsp;now&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#重启(1)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">reboot&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#重启(2)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">logout</span>&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#注销</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">文件和目录</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;/home&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#进入&nbsp;'/&nbsp;home'&nbsp;目录'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;..&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#返回上一级目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;../..&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#返回上两级目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#进入个人的主目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;~user1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#进入个人的主目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;-&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#返回上次所在的目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">pwd</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示工作路径</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看目录中的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;-F&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看目录中的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;-l&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示文件和目录的详细资料</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;-a&nbsp;&nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示隐藏文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;*[0-9]*&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示包含数字的文件名和目录名</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tree&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示文件和目录由根目录开始的树形结构(1)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">lstree&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示文件和目录由根目录开始的树形结构(2)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkdir&nbsp;dir1&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个叫做&nbsp;'dir1'&nbsp;的目录'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkdir&nbsp;dir1&nbsp;dir2&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#同时创建两个目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkdir&nbsp;-p&nbsp;/tmp/dir1/dir2&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个目录树</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rm&nbsp;-f&nbsp;file1&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个叫做&nbsp;'file1'&nbsp;的文件'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rmdir&nbsp;dir1&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个叫做&nbsp;'dir1'&nbsp;的目录'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rm&nbsp;-rf&nbsp;dir1&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个叫做&nbsp;'dir1'&nbsp;的目录并同时删除其内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rm&nbsp;-rf&nbsp;dir1&nbsp;dir2&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#同时删除两个目录及它们的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mv&nbsp;dir1&nbsp;new_dir&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#重命名/移动&nbsp;一个目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cp&nbsp;file1&nbsp;file2&nbsp;&nbsp; &nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#复制一个文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cp&nbsp;dir/*&nbsp;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#复制一个目录下的所有文件到当前工作目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cp&nbsp;-a&nbsp;/tmp/dir1&nbsp;.&nbsp;&nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#复制一个目录到当前工作目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cp&nbsp;-a&nbsp;dir1&nbsp;dir2&nbsp;&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#复制一个目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ln&nbsp;-s&nbsp;file1&nbsp;lnk1&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个指向文件或目录的软链接</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ln&nbsp;file1&nbsp;lnk1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个指向文件或目录的物理链接</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">touch&nbsp;-t&nbsp;0712250000&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修改一个文件或目录的时间戳&nbsp;-&nbsp;(YYMMDDhhmm)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">file&nbsp;file1&nbsp;outputs&nbsp;the&nbsp;mime&nbsp;<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">type</span>&nbsp;of&nbsp;the&nbsp;file&nbsp;as&nbsp;text<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">iconv&nbsp;-l&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#列出已知的编码</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">iconv&nbsp;-f&nbsp;fromEncoding&nbsp;-t&nbsp;toEncoding&nbsp;inputFile&nbsp;&gt;&nbsp;outputFile&nbsp;creates&nbsp;a&nbsp;new&nbsp;from&nbsp;the&nbsp;given&nbsp;input&nbsp;file&nbsp;by&nbsp;assuming&nbsp;it&nbsp;is&nbsp;encoded&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">in</span>&nbsp;fromEncoding&nbsp;and&nbsp;converting&nbsp;it&nbsp;to&nbsp;toEncoding.<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;.&nbsp;-maxdepth&nbsp;1&nbsp;-name&nbsp;*.jpg&nbsp;-<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">print</span>&nbsp;-<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">exec</span>&nbsp;convert&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"{}"</span>&nbsp;-resize&nbsp;80x60&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"thumbs/{}"</span>&nbsp;\;&nbsp;batch&nbsp;resize&nbsp;files&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">in</span>&nbsp;the&nbsp;current&nbsp;directory&nbsp;and&nbsp;send&nbsp;them&nbsp;to&nbsp;a&nbsp;thumbnails&nbsp;directory&nbsp;(requires&nbsp;convert&nbsp;from&nbsp;Imagemagick)<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">文件搜索</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/&nbsp;-name&nbsp;file1 &nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从&nbsp;'/'&nbsp;开始进入根文件系统搜索文件和目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/&nbsp;-user&nbsp;user1&nbsp;&nbsp; &nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#搜索属于用户&nbsp;'user1'&nbsp;的文件和目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/home/user1&nbsp;-name&nbsp;\*.bin&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在目录&nbsp;'/&nbsp;home/user1'&nbsp;中搜索带有'.bin'&nbsp;结尾的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/usr/bin&nbsp;-<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">type</span>&nbsp;f&nbsp;-atime&nbsp;+100&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#搜索在过去100天内未被使用过的执行文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/usr/bin&nbsp;-<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">type</span>&nbsp;f&nbsp;-mtime&nbsp;-10&nbsp;&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#搜索在10天内被创建或者修改过的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/&nbsp;-name&nbsp;\*.rpm&nbsp;-<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">exec</span>&nbsp;chmod&nbsp;755&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'{}'</span>&nbsp;\;&nbsp;&nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#搜索以&nbsp;'.rpm'&nbsp;结尾的文件并定义其权限</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/&nbsp;-xdev&nbsp;-name&nbsp;\*.rpm&nbsp; &nbsp; &nbsp; &nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#搜索以&nbsp;'.rpm'&nbsp;结尾的文件,忽略光驱、捷盘等可移动设备</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">locate&nbsp;\*.ps&nbsp; &nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#寻找以&nbsp;'.ps'&nbsp;结尾的文件&nbsp;-&nbsp;先运行&nbsp;'updatedb'&nbsp;命令</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">whereis&nbsp;halt&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个二进制文件、源码或man的位置</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">which</span>&nbsp;halt&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个二进制文件或可执行文件的完整路径</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">挂载文件系统</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;/dev/hda2&nbsp;/mnt/hda2 &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个叫做hda2的盘&nbsp;-&nbsp;确定目录&nbsp;'/&nbsp;mnt/hda2'&nbsp;已经存在</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">umount&nbsp;/dev/hda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#卸载一个叫做hda2的盘&nbsp;-&nbsp;先从挂载点&nbsp;'/&nbsp;mnt/hda2'&nbsp;退出</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fuser&nbsp;-km&nbsp;/mnt/hda2&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; <span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#当设备繁忙时强制卸载</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">umount&nbsp;-n&nbsp;/mnt/hda2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#运行卸载操作而不写入&nbsp;/etc/mtab&nbsp;文件-&nbsp;当文件为只读或当磁盘写满时非常有用</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;/dev/fd0&nbsp;/mnt/floppy&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个软盘</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;/dev/cdrom&nbsp;/mnt/cdrom&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个cdrom或dvdrom</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;/dev/hdc&nbsp;/mnt/cdrecorder&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个cdrw或dvdrom</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;/dev/hdb&nbsp;/mnt/cdrecorder&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个cdrw或dvdrom</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;-o&nbsp;loop&nbsp;file.iso&nbsp;/mnt/cdrom&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个文件或ISO镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;-t&nbsp;vfat&nbsp;/dev/hda5&nbsp;/mnt/hda5&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个Windows&nbsp;FAT32文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;/dev/sda1&nbsp;/mnt/usbdisk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个usb&nbsp;捷盘或闪存设备</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;-t&nbsp;smbfs&nbsp;-o&nbsp;username=user,password=pass&nbsp;//WinClient/share&nbsp;/mnt/share&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个windows网络共享</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">磁盘空间相关</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">df&nbsp;-h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示已经挂载的分区列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;-lSr&nbsp;|more&nbsp; &nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#以尺寸大小排列文件和目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">du&nbsp;-sh&nbsp;dir1&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#估算目录&nbsp;'dir1'&nbsp;已经使用的磁盘空间'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">du&nbsp;-sk&nbsp;*&nbsp;|&nbsp;sort&nbsp;-rn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#以容量大小为依据依次显示文件和目录的大小</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-q&nbsp;-a&nbsp;--qf&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'%10{SIZE}t%{NAME}n'</span>&nbsp;|&nbsp;sort&nbsp;-k1,1n&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#以大小为依据依次显示已安装的rpm包所使用的空间&nbsp;(fedora,&nbsp;redhat类系统)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg-query&nbsp;-W&nbsp;-f=<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'${Installed-Size;10}t${Package}n'</span>&nbsp;|&nbsp;sort&nbsp;-k1,1n&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#以大小为依据显示已安装的deb包所使用的空间&nbsp;(ubuntu,&nbsp;debian类系统)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">用户和群组</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">groupadd&nbsp;group_name&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个新用户组</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">groupdel&nbsp;group_name&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个用户组</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">groupmod&nbsp;-n&nbsp;new_group_name&nbsp;old_group_name&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#重命名一个用户组</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">useradd&nbsp;-c&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"Name&nbsp;Surname&nbsp;"</span>&nbsp;-g&nbsp;admin&nbsp;-d&nbsp;/home/user1&nbsp;-s&nbsp;/bin/bash&nbsp;user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个属于&nbsp;"admin"&nbsp;用户组的用户</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">useradd&nbsp;user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个新用户</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">userdel&nbsp;-r&nbsp;user1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个用户&nbsp;(&nbsp;'-r'&nbsp;排除主目录)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">usermod&nbsp;-c&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"User&nbsp;FTP"</span>&nbsp;-g&nbsp;system&nbsp;-d&nbsp;/ftp/user1&nbsp;-s&nbsp;/bin/nologin&nbsp;user1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修改用户属性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">passwd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修改口令</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">passwd&nbsp;user1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修改一个用户的口令&nbsp;(只允许root执行)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chage&nbsp;-E&nbsp;2005-12-31&nbsp;user1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置用户口令的失效期限</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">pwck&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#检查&nbsp;'/etc/passwd'&nbsp;的文件格式和语法修正以及存在的用户</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">grpck&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#检查&nbsp;'/etc/passwd'&nbsp;的文件格式和语法修正以及存在的群组</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">newgrp&nbsp;group_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#登陆进一个新的群组以改变新创建文件的预设群组</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">文件权限</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">使用&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"+"</span>&nbsp;设置权限,使用&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"-"</span>&nbsp;用于取消<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;-lh&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示权限</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ls&nbsp;/tmp&nbsp;|&nbsp;pr&nbsp;-T5&nbsp;-W<span
style="max-width: 100%;color: rgb(63, 110, 116);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">$COLUMNS</span>&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将终端划分成5栏显示</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;ugo+rwx&nbsp;directory1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置目录的所有人(u)、群组(g)以及其他人(o)以读(r&nbsp;)、写(w)和执行(x)的权限</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;go-rwx&nbsp;directory1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除群组(g)与其他人(o)对目录的读写执行权限</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chown&nbsp;user1&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#改变一个文件的所有人属性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chown&nbsp;-R&nbsp;user1&nbsp;directory1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#改变一个目录的所有人属性并同时改变改目录下所有文件的属性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chgrp&nbsp;group1&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#改变文件的群组</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chown&nbsp;user1:group1&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#改变一个文件的所有人和群组属性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/&nbsp;-perm&nbsp;-u+s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#罗列一个系统中所有使用了SUID控制的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;u+s&nbsp;/bin/file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置一个二进制文件的&nbsp;SUID&nbsp;&nbsp;-&nbsp;运行该文件的用户也被赋予和所有者同样的权限</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;u<span
style="max-width: 100%;line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">-s</span>&nbsp;/bin/file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#禁用一个二进制文件的&nbsp;SUID位</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;g+s&nbsp;/home/public&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置一个目录的SGID&nbsp;&nbsp;-&nbsp;类似SUID&nbsp;,不过这是针对目录的</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;g<span
style="max-width: 100%;line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">-s</span>&nbsp;/home/public&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#禁用一个目录的&nbsp;SGID&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;o+t&nbsp;/home/public&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置一个文件的&nbsp;STIKY&nbsp;&nbsp;-&nbsp;只允许合法所有人删除文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chmod&nbsp;o-t&nbsp;/home/public&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#禁用一个目录的&nbsp;STIKY&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">文件的特殊属性</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">-&nbsp;使用&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"+"</span>&nbsp;设置权限,使用&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"-"</span>&nbsp;用于取消<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+a&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#只允许以追加方式读写文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+c&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#允许这个文件能被内核自动压缩/解压</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+d&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在进行文件系统备份时,dump程序将忽略这个文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+i&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置成不可变的文件,不能被删除、修改、重命名或者链接</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+s&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#允许一个文件被安全地删除</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+S&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#一旦应用程序对这个文件执行了写操作,使系统立刻把修改的结果写到磁盘</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">chattr&nbsp;+u&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#若文件被删除,系统会允许你在以后恢复这个被删除的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">lsattr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示特殊的属性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);font-size: 24px;box-sizing: border-box !important;overflow-wrap: break-word !important;">打包和压缩文件</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">bunzip2&nbsp;file1.bz2&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压一个叫做&nbsp;'file1.bz2'的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">bzip2&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#压缩一个叫做&nbsp;'file1'&nbsp;的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">gunzip&nbsp;file1.gz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压一个叫做&nbsp;'file1.gz'的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">gzip&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#压缩一个叫做&nbsp;'file1'的文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">gzip&nbsp;-9&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#最大程度压缩</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rar&nbsp;a&nbsp;file1.rar&nbsp;test_file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个叫做&nbsp;'file1.rar'&nbsp;的包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rar&nbsp;a&nbsp;file1.rar&nbsp;file1&nbsp;file2&nbsp;dir1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#同时压缩&nbsp;'file1',&nbsp;'file2'&nbsp;以及目录&nbsp;'dir1'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rar&nbsp;x&nbsp;file1.rar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压rar包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">unrar&nbsp;x&nbsp;file1.rar&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压rar包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-cvf&nbsp;archive.tar&nbsp;file1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个非压缩的&nbsp;tarball</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-cvf&nbsp;archive.tar&nbsp;file1&nbsp;file2&nbsp;dir1&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个包含了&nbsp;'file1',&nbsp;'file2'&nbsp;以及&nbsp;'dir1'的档案文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-tf&nbsp;archive.tar&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个包中的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-xvf&nbsp;archive.tar&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#释放一个包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-xvf&nbsp;archive.tar&nbsp;-C&nbsp;/tmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将压缩包释放到&nbsp;/tmp目录下</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-cvfj&nbsp;archive.tar.bz2&nbsp;dir1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个bzip2格式的压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-jxvf&nbsp;archive.tar.bz2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压一个bzip2格式的压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-cvfz&nbsp;archive.tar.gz&nbsp;dir1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个gzip格式的压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-zxvf&nbsp;archive.tar.gz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压一个gzip格式的压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">zip&nbsp;file1.zip&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个zip格式的压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">zip&nbsp;-r&nbsp;file1.zip&nbsp;file1&nbsp;file2&nbsp;dir1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将几个文件和目录同时压缩成一个zip格式的压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">unzip&nbsp;file1.zip&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#解压一个zip格式压缩包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">RPM包(Fedora,
Redhat及类似系统)</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-ivh&nbsp;package.rpm&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#安装一个rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-ivh&nbsp;--nodeeps&nbsp;package.rpm&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#安装一个rpm包而忽略依赖关系警告</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-U&nbsp;package.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#更新一个rpm包但不改变其配置文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-F&nbsp;package.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#更新一个确定已经安装的rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-e&nbsp;package_name.rpm&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示系统中所有已经安装的rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qa&nbsp;|&nbsp;grep&nbsp;httpd&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示所有名称中包含&nbsp;"httpd"&nbsp;字样的rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qi&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#获取一个已安装包的特殊信息</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qg&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"System&nbsp;Environment/Daemons"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个组件的rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-ql&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个已经安装的rpm包提供的文件列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qc&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个已经安装的rpm包提供的配置文件列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-q&nbsp;package_name&nbsp;--whatrequires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示与一个rpm包存在依赖关系的列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-q&nbsp;package_name&nbsp;--whatprovides&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个rpm包所占的体积</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-q&nbsp;package_name&nbsp;--scripts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示在安装/删除期间所执行的脚本l</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-q&nbsp;package_name&nbsp;--changelog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个rpm包的修改历史</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qf&nbsp;/etc/httpd/conf/httpd.conf&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#确认所给的文件由哪个rpm包所提供</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qp&nbsp;package.rpm&nbsp;-l&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示由一个尚未安装的rpm包提供的文件列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;--import&nbsp;/media/cdrom/RPM-GPG-KEY&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#导入公钥数字证书</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;--checksig&nbsp;package.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#确认一个rpm包的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-qa&nbsp;gpg-pubkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#确认已安装的所有rpm包的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-V&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#检查文件尺寸、&nbsp;许可、类型、所有者、群组、MD5检查以及最后修改时间</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-Va&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#检查系统中所有已安装的rpm包-&nbsp;小心使用</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-Vp&nbsp;package.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#确认一个rpm包还未安装</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm2cpio&nbsp;package.rpm&nbsp;|&nbsp;cpio&nbsp;--extract&nbsp;--make-directories&nbsp;*bin*&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从一个rpm包运行可执行文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpm&nbsp;-ivh&nbsp;/usr/src/redhat/RPMS/`arch`/package.rpm&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从一个rpm源码安装一个构建好的包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rpmbuild&nbsp;--rebuild&nbsp;package_name.src.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从一个rpm源码构建一个&nbsp;rpm&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">YUM(Fedora,
RedHat及类似系统)</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;install&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#下载并安装一个rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;localinstall&nbsp;package_name.rpm&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将安装一个rpm包,使用你自己的软件仓库为你解决所有依赖关系</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;update&nbsp;package_name.rpm&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#更新当前系统中所有安装的rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;update&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#更新一个rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;remove&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除一个rpm包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;list&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#列出当前系统中安装的所有包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;search&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在rpm仓库中搜寻软件包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;clean&nbsp;packages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#清理rpm缓存删除下载的包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;clean&nbsp;headers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除所有头文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">yum&nbsp;clean&nbsp;all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除所有缓存的包和头文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">DEB包
(Debian, Ubuntu及类似系统)</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-i&nbsp;package.deb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#安装/更新一个&nbsp;deb&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-r&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从系统删除一个&nbsp;deb&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-l&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示系统中所有已经安装的&nbsp;deb&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-l&nbsp;|&nbsp;grep&nbsp;httpd&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示所有名称中包含&nbsp;"httpd"&nbsp;字样的deb包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-s&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#获得已经安装在系统中一个特殊包的信息</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-L&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示系统中已经安装的一个deb包所提供的文件列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;--contents&nbsp;package.deb&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示尚未安装的一个包所提供的文件列表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dpkg&nbsp;-S&nbsp;/bin/ping&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#确认所给的文件由哪个deb包提供</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">APT软件工具
(Debian, Ubuntu及类似系统)</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-get&nbsp;install&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#安装/更新一个&nbsp;deb&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-cdrom&nbsp;install&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从光盘安装/更新一个&nbsp;deb&nbsp;</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-get&nbsp;update&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#升级列表中的软件包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-get&nbsp;upgrade&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#升级所有已安装的软件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-get&nbsp;remove&nbsp;package_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从系统删除一个deb包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-get&nbsp;check&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#确认依赖的软件仓库正确</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-get&nbsp;clean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从下载的软件包中清理缓存</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">apt-cache&nbsp;search&nbsp;searched-package&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#返回包含所要搜索字符串的软件包名称</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">查看文件内容</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从第一个字节开始正向查看文件的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tac&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从最后一行开始反向查看一个文件的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">more&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看一个长文件的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">less&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#类似于&nbsp;'more'&nbsp;命令,但是它允许在文件中和正向操作一样的反向操作</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">head&nbsp;-2&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看一个文件的前两行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tail&nbsp;-2&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看一个文件的最后两行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tail&nbsp;-f&nbsp;/var/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">log</span>/messages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#实时查看被添加到一个文件中的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">文本处理</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;file1&nbsp;file2&nbsp;...&nbsp;|&nbsp;<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">command</span>&nbsp;&lt;&gt;&nbsp;file1_in.txt_or_file1_out.txt&nbsp;general&nbsp;syntax&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">for</span>&nbsp;text&nbsp;manipulation&nbsp;using&nbsp;PIPE,&nbsp;STDIN&nbsp;and&nbsp;STDOUT<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;file1&nbsp;|&nbsp;<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">command</span>(&nbsp;sed,&nbsp;grep,&nbsp;awk,&nbsp;grep,&nbsp;etc...)&nbsp;&gt;&nbsp;result.txt&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#合并一个文件的详细说明文本,并将简介写入一个新文件中</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;file1&nbsp;|&nbsp;<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">command</span>(&nbsp;sed,&nbsp;grep,&nbsp;awk,&nbsp;grep,&nbsp;etc...)&nbsp;&gt;&gt;&nbsp;result.txt&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#合并一个文件的详细说明文本,并将简介写入一个已有的文件中</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">grep&nbsp;Aug&nbsp;/var/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">log</span>/messages&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在文件&nbsp;'/var/log/messages'中查找关键词"Aug"</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">grep&nbsp;^Aug&nbsp;/var/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">log</span>/messages&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在文件&nbsp;'/var/log/messages'中查找以"Aug"开始的词汇</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">grep&nbsp;[0-9]&nbsp;/var/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">log</span>/messages&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#选择&nbsp;'/var/log/messages'&nbsp;文件中所有包含数字的行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">grep&nbsp;Aug&nbsp;-R&nbsp;/var/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">log</span>/*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在目录&nbsp;'/var/log'&nbsp;及随后的目录中搜索字符串"Aug"</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'s/stringa1/stringa2/g'</span>&nbsp;example.txt&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将example.txt文件中的&nbsp;"string1"&nbsp;替换成&nbsp;"string2"</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'/^$/d'</span>&nbsp;example.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从example.txt文件中删除所有空白行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'/&nbsp;*#/d;&nbsp;/^$/d'</span>&nbsp;example.txt&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从example.txt文件中删除所有注释和空白行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">echo</span>&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'esempio'</span>&nbsp;|&nbsp;tr&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'[:lower:]'</span>&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'[:upper:]'</span>&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#合并上下单元格内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-e&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'1d'</span>&nbsp;result.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从文件example.txt&nbsp;中排除第一行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-n&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'/stringa1/p'</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看只包含词汇&nbsp;"string1"的行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-e&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'s/&nbsp;*$//'</span>&nbsp;example.txt&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除每一行最后的空白字符</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-e&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'s/stringa1//g'</span>&nbsp;example.txt&nbsp;&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从文档中只删除词汇&nbsp;"string1"&nbsp;并保留剩余全部</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-n&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'1,5p;5q'</span>&nbsp;example.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看从第一行到第5行内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-n&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'5p;5q'</span>&nbsp;example.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看第5行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sed&nbsp;-e&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'s/00*/0/g'</span>&nbsp;example.txt&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#用单个零替换多个零</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;-n&nbsp;file1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#标示文件的行数</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cat&nbsp;example.txt&nbsp;|&nbsp;awk&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'NR%2==1'</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除example.txt文件中的所有偶数行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">echo</span>&nbsp;a&nbsp;b&nbsp;c&nbsp;|&nbsp;awk&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'{print&nbsp;$1}'</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看一行第一栏</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">echo</span>&nbsp;a&nbsp;b&nbsp;c&nbsp;|&nbsp;awk&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'{print&nbsp;$1,$3}'</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看一行的第一和第三栏</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">paste&nbsp;file1&nbsp;file2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#合并两个文件或两栏的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">paste&nbsp;-d&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'+'</span>&nbsp;file1&nbsp;file2&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#合并两个文件或两栏的内容,中间用"+"区分</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sort&nbsp;file1&nbsp;file2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#排序两个文件的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sort&nbsp;file1&nbsp;file2&nbsp;|&nbsp;uniq&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#取出两个文件的并集(重复的行只保留一份)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sort&nbsp;file1&nbsp;file2&nbsp;|&nbsp;uniq&nbsp;-u&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除交集,留下其他的行</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">sort&nbsp;file1&nbsp;file2&nbsp;|&nbsp;uniq&nbsp;-d&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#取出两个文件的交集(只留下同时存在于两个文件中的文件)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">comm&nbsp;-1&nbsp;file1&nbsp;file2&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#比较两个文件的内容只删除&nbsp;'file1'&nbsp;所包含的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">comm&nbsp;-2&nbsp;file1&nbsp;file2&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#比较两个文件的内容只删除&nbsp;'file2'&nbsp;所包含的内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">comm&nbsp;-3&nbsp;file1&nbsp;file2&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#比较两个文件的内容只删除两个文件共有的部分</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">字符设置和文件格式转换</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">dos2unix&nbsp;filedos.txt&nbsp;fileunix.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将一个文本文件的格式从MSDOS转换成UNIX</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">unix2dos&nbsp;fileunix.txt&nbsp;filedos.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将一个文本文件的格式从UNIX转换成MSDOS</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">recode&nbsp;..HTML&nbsp;&lt;&nbsp;page.txt&nbsp;&gt;&nbsp;page.html&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#将一个文本文件转换成html</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">recode&nbsp;-l&nbsp;|&nbsp;more&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示所有允许的转换格式</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">文件系统分析</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">badblocks&nbsp;-v&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#检查磁盘hda1上的坏磁块</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fsck&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上linux文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fsck.ext2&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上ext2文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">e2fsck&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上ext2文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">e2fsck&nbsp;-j&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上ext3文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fsck.ext3&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上ext3文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fsck.vfat&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上fat文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fsck.msdos&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上dos文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dosfsck&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#修复/检查hda1磁盘上dos文件系统的完整性</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">初始化一个文件系统</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkfs&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在hda1分区创建一个文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mke2fs&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在hda1分区创建一个linux&nbsp;ext2的文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mke2fs&nbsp;-j&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在hda1分区创建一个linux&nbsp;ext3(日志型)的文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkfs&nbsp;-t&nbsp;vfat&nbsp;32&nbsp;-F&nbsp;/dev/hda1&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个&nbsp;FAT32&nbsp;文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">fdformat&nbsp;-n&nbsp;/dev/fd0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#格式化一个软盘</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkswap&nbsp;/dev/hda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个swap文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">SWAP文件系统</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkswap&nbsp;/dev/hda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个swap文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">swapon&nbsp;/dev/hda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#启用一个新的swap文件系统</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">swapon&nbsp;/dev/hda2&nbsp;/dev/hdb3&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#启用两个swap分区</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">备份</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">dump&nbsp;-0aj&nbsp;-f&nbsp;/tmp/home0.bak&nbsp;/home&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#制作一个&nbsp;'/home'&nbsp;目录的完整备份</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dump&nbsp;-1aj&nbsp;-f&nbsp;/tmp/home0.bak&nbsp;/home&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#制作一个&nbsp;'/home'&nbsp;目录的交互式备份</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">restore&nbsp;-<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">if</span>&nbsp;/tmp/home0.bak&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#还原一个交互式备份</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rsync&nbsp;-rogpav&nbsp;--delete&nbsp;/home&nbsp;/tmp&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#同步两边的目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rsync&nbsp;-rogpav&nbsp;-e&nbsp;ssh&nbsp;--delete&nbsp;/home&nbsp;ip_address:/tmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#通过SSH通道rsync</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rsync&nbsp;-az&nbsp;-e&nbsp;ssh&nbsp;--delete&nbsp;ip_addr:/home/public&nbsp;/home/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">local</span>&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#通过ssh和压缩将一个远程目录同步到本地目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">rsync&nbsp;-az&nbsp;-e&nbsp;ssh&nbsp;--delete&nbsp;/home/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">local</span>&nbsp;ip_addr:/home/public&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#通过ssh和压缩将本地目录同步到远程目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dd&nbsp;bs=1M&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">if</span>=/dev/hda&nbsp;|&nbsp;gzip&nbsp;|&nbsp;ssh&nbsp;user@ip_addr&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'dd&nbsp;of=hda.gz'</span>&nbsp;&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#通过ssh在远程主机上执行一次备份本地磁盘的操作</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dd&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">if</span>=/dev/sda&nbsp;of=/tmp/file1&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#备份磁盘内容到一个文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;-Puf&nbsp;backup.tar&nbsp;/home/user&nbsp;执行一次对&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'/home/user'</span>&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#目录的交互式备份操作</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">(&nbsp;<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;/tmp/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">local</span>/&nbsp;&amp;&amp;&nbsp;tar&nbsp;c&nbsp;.&nbsp;)&nbsp;|&nbsp;ssh&nbsp;-C&nbsp;user@ip_addr&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'cd&nbsp;/home/share/&nbsp;&amp;&amp;&nbsp;tar&nbsp;x&nbsp;-p'</span>&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#通过ssh在远程目录中复制一个目录内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">(&nbsp;tar&nbsp;c&nbsp;/home&nbsp;)&nbsp;|&nbsp;ssh&nbsp;-C&nbsp;user@ip_addr&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'cd&nbsp;/home/backup-home&nbsp;&amp;&amp;&nbsp;tar&nbsp;x&nbsp;-p'</span>&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#通过ssh在远程目录中复制一个本地目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tar&nbsp;cf&nbsp;-&nbsp;.&nbsp;|&nbsp;(<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>&nbsp;/tmp/backup&nbsp;;&nbsp;tar&nbsp;xf&nbsp;-&nbsp;)&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#本地将一个目录复制到另一个地方,保留原有权限及链接</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/home/user1&nbsp;-name&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'*.txt'</span>&nbsp;|&nbsp;xargs&nbsp;cp&nbsp;-av&nbsp;--target-directory=/home/backup/&nbsp;--parents&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从一个目录查找并复制所有以&nbsp;'.txt'&nbsp;结尾的文件到另一个目录</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">find&nbsp;/var/<span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">log</span>&nbsp;-name&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">'*.log'</span>&nbsp;|&nbsp;tar&nbsp;cv&nbsp;--files-from=-&nbsp;|&nbsp;bzip2&nbsp;&gt;&nbsp;log.tar.bz2&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查找所有以&nbsp;'.log'&nbsp;结尾的文件并做成一个bzip包</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dd&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">if</span>=/dev/hda&nbsp;of=/dev/fd0&nbsp;bs=512&nbsp;count=1&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#做一个将&nbsp;MBR&nbsp;(Master&nbsp;Boot&nbsp;Record)内容复制到软盘的动作</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dd&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">if</span>=/dev/fd0&nbsp;of=/dev/hda&nbsp;bs=512&nbsp;count=1&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从已经保存到软盘的备份中恢复MBR内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">光盘</span>
</h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">cdrecord&nbsp;-v&nbsp;gracetime=2&nbsp;dev=/dev/cdrom&nbsp;-eject&nbsp;blank=fast&nbsp;-force&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#清空一个可复写的光盘内容</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkisofs&nbsp;/dev/cdrom&nbsp;&gt;&nbsp;cd.iso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在磁盘上创建一个光盘的iso镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkisofs&nbsp;/dev/cdrom&nbsp;|&nbsp;gzip&nbsp;&gt;&nbsp;cd_iso.gz&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#在磁盘上创建一个压缩了的光盘iso镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mkisofs&nbsp;-J&nbsp;-allow-leading-dots&nbsp;-R&nbsp;-V&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"Label&nbsp;CD"</span>&nbsp;-iso-level&nbsp;4&nbsp;-o&nbsp;./cd.iso&nbsp;data_cd&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#创建一个目录的iso镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cdrecord&nbsp;-v&nbsp;dev=/dev/cdrom&nbsp;cd.iso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#刻录一个ISO镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">gzip&nbsp;-dc&nbsp;cd_iso.gz&nbsp;|&nbsp;cdrecord&nbsp;dev=/dev/cdrom&nbsp;-&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#刻录一个压缩了的ISO镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mount&nbsp;-o&nbsp;loop&nbsp;cd.iso&nbsp;/mnt/iso&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#挂载一个ISO镜像文件</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>-paranoia&nbsp;-B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从一个CD光盘转录音轨到&nbsp;wav&nbsp;文件中</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(92, 38, 153);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">cd</span>-paranoia&nbsp;--&nbsp;<span
style="max-width: 100%;color: rgb(196, 26, 22);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">"-3"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#从一个CD光盘转录音轨到&nbsp;wav&nbsp;文件中(参数-3)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">cdrecord&nbsp;--scanbus&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#扫描总线以识别scsi通道</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dd&nbsp;<span
style="max-width: 100%;color: rgb(170, 13, 145);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">if</span>=/dev/hdc&nbsp;|&nbsp;md5sum&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#校验一个设备的md5sum编码,例如一张&nbsp;CD</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
<h2 data-tool="mdnice编辑器"
style="margin-top: 25px;margin-right: 10px;font-weight: bold;font-size: 22px;max-width: 100%;color: black;line-height: 1.6;box-sizing: border-box !important;overflow-wrap: break-word !important;">
<span
style="padding-left: 10px;max-width: 100%;font-size: 18px;color: rgb(34, 34, 34);display: inline-block;border-left: 5px solid rgb(248, 57, 41);box-sizing: border-box !important;overflow-wrap: break-word !important;">网络
- (以太网和WIFI无线)</span></h2>
<pre data-tool="mdnice编辑器"
style="margin-top: 10px;margin-bottom: 10px;max-width: 100%;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="margin-bottom: -7px;max-width: 100%;display: block;background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/tuSaKc6SfPo5W8cUXj0BngIyTicnwX8yuH0r2WmgE9BjicRoibWFCVWnzpDPsvXMiaoicBdBA7G9Jyj9zZPWSzJKwGg/640?wx_fmt=png&quot;);background-size: 40px;height: 30px;width: 667px;border-radius: 5px;background-position: 10px 10px;background-repeat: no-repeat;box-sizing: border-box !important;overflow-wrap: break-word !important;"></span><code
style="padding: 15px 16px 16px;max-width: 100%;overflow-x: auto;color: black;display: -webkit-box;font-size: 12px;border-radius: 5px;font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;box-sizing: border-box !important;overflow-wrap: break-word !important;">ifconfig&nbsp;eth0&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示一个以太网卡的配置</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ifup&nbsp;eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#启用一个&nbsp;'eth0'&nbsp;网络设备</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ifdown&nbsp;eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#禁用一个&nbsp;'eth0'&nbsp;网络设备</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ifconfig&nbsp;eth0&nbsp;192.168.1.1&nbsp;netmask&nbsp;255.255.255.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#控制IP地址</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ifconfig&nbsp;eth0&nbsp;promisc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#设置&nbsp;'eth0'&nbsp;成混杂模式以嗅探数据包&nbsp;(sniffing)</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">dhclient&nbsp;eth0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#以dhcp模式启用&nbsp;'eth0'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">route&nbsp;-n&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看路由表</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">route&nbsp;add&nbsp;-net&nbsp;0/0&nbsp;gw&nbsp;IP_Gateway&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#配置默认网关</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">route&nbsp;add&nbsp;-net&nbsp;192.168.0.0&nbsp;netmask&nbsp;255.255.0.0&nbsp;gw&nbsp;192.168.1.1&nbsp;<br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#配置静态路由到达网络'192.168.0.0/16'</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">route&nbsp;del&nbsp;0/0&nbsp;gw&nbsp;IP_gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#删除静态路由</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">hostname&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看机器名</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">host&nbsp;www.example.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#把一个主机名解析到一个网际地址或把一个网际地址解析到一个主机名。</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">nslookup&nbsp;www.example.com&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#用于查询DNS的记录,查看域名解析是否正常,在网络故障的时候用来诊断网络问题。</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ip&nbsp;link&nbsp;show&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#查看网卡信息</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">mii-tool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#用于查看、管理介质的网络接口的状态</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">ethtool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#用于查询和设置网卡配置</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">netstat&nbsp;-tupl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#用于显示TCP/UDP的状态信息</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;">tcpdump&nbsp;tcp&nbsp;port&nbsp;80&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
style="max-width: 100%;color: rgb(0, 116, 0);line-height: 26px;box-sizing: border-box !important;overflow-wrap: break-word !important;">#显示所有http协议的流量</span><br
style="max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;"></code></pre>
</section>
</section>
</div>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xinlau/DocumentationAndTutorials.git
git@gitee.com:xinlau/DocumentationAndTutorials.git
xinlau
DocumentationAndTutorials
DocumentationAndTutorials
master

Search