一江春水向東流

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

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

          [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 閱讀(264) 評論(0)  編輯  收藏 所屬分類: LINUX配置,shell
          主站蜘蛛池模板: 津市市| 旬邑县| 临湘市| 灵武市| 陆良县| 舒城县| 盐池县| 南昌县| 德州市| 寻甸| 佛教| 大同县| 中西区| 吴忠市| 潼南县| 黄平县| 丹江口市| 读书| 黄龙县| 云安县| 十堰市| 淄博市| 喀喇沁旗| 格尔木市| 桂阳县| 东丽区| 伊川县| 呼图壁县| 钟山县| 肃北| 信丰县| 曲麻莱县| 高邮市| 浦北县| 温泉县| 临江市| 遂昌县| 平江县| 阳朔县| 宜都市| 嵊州市|