一江春水向東流

          做一個有思想的人,期待與每一位熱愛思考的人交流,您的關(guān)注是對我最大的支持。

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            44 隨筆 :: 139 文章 :: 81 評論 :: 0 Trackbacks
          kill -9 pid &> /dev/null?????????? 屏蔽標(biāo)準(zhǔn)輸出和標(biāo)準(zhǔn)錯誤輸出

          [root@localhost shell]# echo $BASH_VERSION
          2.05b.0(1)-release
          [root@localhost shell]# echo $PATH
          /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/huyi/bin
          [root@localhost shell]# $PATH=$HOME:/usr/bin
          bash: /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/huyi/bin=/root:/usr/bin: ????
          [root@localhost shell]#
          [root@localhost shell]# export PATH
          [root@localhost shell]# hash
          hits??? command
          ?? 1??? /bin/egrep
          ?? 1??? /bin/bash
          ?? 1??? /bin/cat
          ?? 1??? /bin/cp
          ?? 1??? /bin/stty
          ? 15??? /bin/ls
          [root@localhost shell]# $!

          [root@localhost shell]# echo ${newfruit:-apple}
          apple
          [root@localhost shell]# echo ${fruit:-peach}
          orange

          [root@localhost shell]# food=grapes
          [root@localhost shell]# echo ${food:+pears}
          pears
          [root@localhost shell]# echo $food
          grapes

          posted on 2008-03-25 23:09 allic 閱讀(261) 評論(0)  編輯  收藏 所屬分類: LINUX配置,shell
          主站蜘蛛池模板: 石家庄市| 甘泉县| 灵寿县| 和顺县| 汕尾市| 常州市| 雅安市| 谢通门县| 漠河县| 同江市| 车致| 宽甸| 湖南省| 浙江省| 牙克石市| 镇雄县| 永兴县| 晋州市| 安龙县| 商都县| 通海县| 天镇县| 名山县| 平定县| 三门县| 治多县| 喀喇沁旗| 镇雄县| 姚安县| 伽师县| 隆尧县| 江西省| 鹤山市| 陆丰市| 射洪县| 西峡县| 望江县| 佛学| 百色市| 余姚市| 阿图什市|