<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://lnote.cn/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://lnote.cn/wiki/feed.php">
        <title>LinuxNote - 程序应用:bash</title>
        <description></description>
        <link>http://lnote.cn/wiki/</link>
        <image rdf:resource="http://lnote.cn/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-30T16:05:02+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:bash&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:beep&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:ls%E9%A2%9C%E8%89%B2&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:ps1%E8%AE%BE%E7%BD%AE&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:vi%E6%A8%A1%E5%BC%8F&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E5%8E%BB%E6%8E%89%E5%8D%95%E5%BC%95%E5%8F%B7%E6%98%BE%E7%A4%BA&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E5%BF%AB%E6%8D%B7%E5%91%BD%E4%BB%A4&amp;rev=1686633917&amp;do=diff"/>
                <rdf:li rdf:resource="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E9%A2%9C%E8%89%B2&amp;rev=1732865557&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://lnote.cn/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>LinuxNote</title>
        <link>http://lnote.cn/wiki/</link>
        <url>http://lnote.cn/wiki/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:bash&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>bash</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:bash&amp;rev=1686633917&amp;do=diff</link>
        <description>bash

GNU/Linux支持多种版本的shell. 但默认的是bash. /etc/shells文件列出了本机linux系统支持的shell类型. /etc/passwd中列出了用户默认的登录shell.

从当前shell转换到另一种shell: 直接在命令行输入对应的shell程序名.如:</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:beep&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>beep</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:beep&amp;rev=1686633917&amp;do=diff</link>
        <description>软响铃 ── 把 beep 换成音乐

很多人千方百计想关掉控制台（或 X 终端模拟器）的嘀嘀声。我觉得有提示音不一定是坏事，但是那个嘀嘀声听起来的确有点烦人。而且在我的 irssi 中那个 beep 提示音实在是太小声了（而且也不好听）。经过一番寻找，找到了这个 softbeep。softbeep 可以拦截多个发出 beep 的动作，并将其转化成运行任意命令，包括播放音乐。</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:ls%E9%A2%9C%E8%89%B2&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ls颜色</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:ls%E9%A2%9C%E8%89%B2&amp;rev=1686633917&amp;do=diff</link>
        <description>调整 ls --color 颜色 ( dircolors )

dircolors --print-database   会输出一段模板  有颜色数字表示的介绍和 文件类型的默认颜色


# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan …</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:ps1%E8%AE%BE%E7%BD%AE&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ps1设置</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:ps1%E8%AE%BE%E7%BD%AE&amp;rev=1686633917&amp;do=diff</link>
        <description>终端提示符设置（PS1变量配置）

提示符内容配置： 

直接在termial中修改PS1变量就可以改变当前环境的提示符，选到自己喜欢的就可以写进.bashrc文件了：

可以把任意文本写入提示符中：
&gt; PS1=”This is my terminal:&gt;”
This is my termianl:&gt;
This is my termianl:&gt; PS1=”GO$”
GO$</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:vi%E6%A8%A1%E5%BC%8F&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>vi模式</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:vi%E6%A8%A1%E5%BC%8F&amp;rev=1686633917&amp;do=diff</link>
        <description>bash 使用vi模式，并显示当前模式状态

编辑 ~/.inputrc

添加 
set editing-mode vi
set keymap vi-command
set show-mode-in-prompt on</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E5%8E%BB%E6%8E%89%E5%8D%95%E5%BC%95%E5%8F%B7%E6%98%BE%E7%A4%BA&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>去掉单引号显示</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E5%8E%BB%E6%8E%89%E5%8D%95%E5%BC%95%E5%8F%B7%E6%98%BE%E7%A4%BA&amp;rev=1686633917&amp;do=diff</link>
        <description>取消ls列目录文件时含有特殊符号的文件名被单引号包起来的设定
export QUOTING_STYLE=literal ls</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E5%BF%AB%E6%8D%B7%E5%91%BD%E4%BB%A4&amp;rev=1686633917&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-13T05:25:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>快捷命令</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E5%BF%AB%E6%8D%B7%E5%91%BD%E4%BB%A4&amp;rev=1686633917&amp;do=diff</link>
        <description>让你提升命令行效率的 Bash 快捷键 [完整版]

文章来自 linuxtoy  &lt;http://linuxtoy.org/archives/bash-shortcuts.html&gt;

编辑命令 


Ctrl + a ：移到命令行首
Ctrl + e ：移到命令行尾
Ctrl + f ：按字符前移（右向）
Ctrl + b ：按字符后移（左向）
Alt + f ：按单词前移（右向）
Alt + b ：按单词后移（左向）
Ctrl + xx ：在命令行首和光标之间移动
Ctrl + u ：从光标处删除至命令行首
Ctrl + k ：从光标处删除至命令行尾
Ctrl + w ：从光标处删除至字首
Alt + d ：从光标处删除至字尾
Ctrl + d ：删除光标处的字符
Ctrl + h ：删除光标前的字符
Ctrl + y ：粘贴至光标后
Alt + c ：从光标处更改为首字母大写的单词
Alt + u ：从光标处更改为全部大写的单词
Alt + l ：从光标处更改为全部小写的单词
Ctrl + t ：交换光标处和之前的字符
Alt + t ：交换光标处和之前的单词
Alt + Ba…</description>
    </item>
    <item rdf:about="http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E9%A2%9C%E8%89%B2&amp;rev=1732865557&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-11-29T07:32:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>颜色</title>
        <link>http://lnote.cn/wiki/doku.php?id=%E7%A8%8B%E5%BA%8F%E5%BA%94%E7%94%A8:bash:%E9%A2%9C%E8%89%B2&amp;rev=1732865557&amp;do=diff</link>
        <description>颜色代码	普通颜色	粗体/高亮颜色30	黑色（Black）	粗体黑色（Bold Black）31	红色（Red）	粗体红色（Bold Red）32	绿色（Green）	粗体绿色（Bold Green）33	黄色（Yellow）	粗体黄色（Bold Yellow）34	蓝色（Blue）</description>
    </item>
</rdf:RDF>
