马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!假如你想成为Linux妙手,那末把握一些Linux下令是必不成少的。上面是自学Linux下令的四种***。
逐日提醒
进修Linux下令的一种渐进式***是:在每次翻开终端时,让它显现“逐日提醒”。这会向你先容一些有效的下令及其初级利用技能。
在.bashrc中(/home/.bashrc)增添以下一行:
Shell
[color=#aaaaaa!important]1
echo[color=#006fe0!important][color=#dd1144!important]"Didyouknowthat:"[color=#333333!important];[color=#006fe0!important]whatis[color=#006fe0!important][color=#333333!important]$[color=#333333!important](ls[color=#006fe0!important][color=#006fe0!important]/bin[color=#006fe0!important][color=#006fe0!important]|[color=#006fe0!important]shuf[color=#006fe0!important][color=#006fe0!important]-n[color=#006fe0!important][color=#009999!important]1[color=#333333!important])
你只必要增添这行就够了!假如你想让它更文娱化一些,你能够装置cowsay。Ubuntu/Debian下装置cowsay:
Shell
[color=#aaaaaa!important]1
[color=teal!important]sudoapt[color=#006fe0!important]-get[color=#006fe0!important][color=teal!important]installcowsay
Fedora下装置cowsay:
Shell
[color=#aaaaaa!important]1
[color=teal!important]yum[color=teal!important]installcowsay
除装置cowsay,还必要在.bashrc中增添:
<divid="crayon-53166dc5c4c37158217953"class="crayon-syntaxcrayon-theme-githubcrayon-font-monacocrayon-os-macprint-yescrayon-wrapped"data-settings="minimizescroll-mou搜索引擎优化verwrap"style="font-family:monaco,monacoregular,couriernew,monospace;outline:none;margin:12px0px;padding:0px;vertical-align:baseline;box-sizing:border-box;width:1110px;color:#666666;float:none;clear:both;height:auto;border:1pxsolid#dedede!important;font-size:12px!important;line-height:15px!important;overflow:hidden!important;position:relative!important;direction:ltr!important;background-color:#f8f8ff!important;">
Shell
<divclass="crayon-main"style="outline:none;margin:0px;padding:0px;border:0px;font-size:inherit;font-style:inherit;font-variant:inherit;line-height:inherit;vertical-align:baseline;width:1108px;overflow:hidden;position:relative;z-index:1;background-position:0px50%;">[color=#aaaaaa!important]1
<divclass="crayon-pre"style="outline:none;margin:0px;font-style:inherit;font-variant:inherit;vertical-align:baseline;color:#000000;overflow:visible;padding-top:5px!important;padding-bottom:3px!important;border:none!important;line-height:15px!important;background-image:none!important;padding-right:0px;padding-left:0px;"><divclass="crayon-line"id="crayon-53166dc5c4c37158217953-1"style="font-family:inherit;outline:none;margin:0px;padding:0px5px;border:0px;font-style:inherit;font-variant:inherit;vertical-align:baseline;font-size:inherit!important;line-height:inherit!important;height:inherit!important;background-position:0px50%;">cowsay[color=#006fe0!important][color=#006fe0!important]-f[color=#006fe0!important][color=#333333!important]$[color=#333333!important](ls[color=#006fe0!important][color=#006fe0!important]/usr[color=#006fe0!important]/share[color=#006fe0!important]/cowsay[color=#006fe0!important]/cows[color=#006fe0!important][color=#006fe0!important]|[color=#006fe0!important]shuf[color=#006fe0!important][color=#006fe0!important]-n[color=#006fe0!important][color=#009999!important]1[color=#006fe0!important][color=#006fe0!important]|[color=#006fe0!important]cut[color=#006fe0!important][color=#006fe0!important]-[color=#002d7a!important]d[color=#333333!important].[color=#006fe0!important][color=#006fe0!important]-f1[color=#333333!important])[color=#006fe0!important][color=#333333!important]$[color=#333333!important](whatis[color=#006fe0!important][color=#333333!important]$[color=#333333!important](ls[color=#006fe0!important][color=#006fe0!important]/bin[color=#333333!important])[color=#006fe0!important][color=#009999!important]2[color=#006fe0!important]>[color=#006fe0!important]/dev[color=#006fe0!important]/[color=#800080!important]null[color=#006fe0!important][color=#006fe0!important]|[color=#006fe0!important]shuf |