精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > Linux系統(tǒng)如何查看shell

      Linux系統(tǒng)如何查看shell

      時(shí)間: 孫勝652 分享

      Linux系統(tǒng)如何查看shell

        系統(tǒng)中shell是一種程序設(shè)計(jì)語言,可執(zhí)行各種命令,那么shell要如何查看呢?下面小編就給大家介紹下Linux下如何查看當(dāng)前shell的方法,一起來了解下吧。

        1、實(shí)時(shí)查看當(dāng)前進(jìn)程中使用的shell種類:推薦

        代碼如下:

        ps | grep $$ | awk ‘{print }’

        (注:$$表示shell的進(jìn)程號(hào))

        2、最常用的查看shell的命令,但不能實(shí)時(shí)反映當(dāng)前shell

        代碼如下:

        $ echo $SHELL

        3、更簡(jiǎn)潔,但并不是所有shell都支持

        代碼如下:

        $ echo

      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > Linux系統(tǒng)如何查看shell

      Linux系統(tǒng)如何查看shell

      時(shí)間: 孫勝652 分享

      Linux系統(tǒng)如何查看shell

        系統(tǒng)中shell是一種程序設(shè)計(jì)語言,可執(zhí)行各種命令,那么shell要如何查看呢?下面小編就給大家介紹下Linux下如何查看當(dāng)前shell的方法,一起來了解下吧。

        1、實(shí)時(shí)查看當(dāng)前進(jìn)程中使用的shell種類:推薦

        代碼如下:

        ps | grep $$ | awk ‘{print }’

        (注:$$表示shell的進(jìn)程號(hào))

        2、最常用的查看shell的命令,但不能實(shí)時(shí)反映當(dāng)前shell

        代碼如下:

        $ echo $SHELL

        3、更簡(jiǎn)潔,但并不是所有shell都支持

        代碼如下:

        $ echo

        4、環(huán)境變量中shell的匹配查找

        代碼如下:

        env | grep SHELL

        5、口令文件中shell的匹配查找

        代碼如下:

        cat /etc/passwd | grep muye

        6、用ps -ef時(shí)候

        代碼如下:

        $ ps -ef | grep $$ | grep -v grep | grep -v ps

        注:grep -v 表示取反,如下:

        代碼如下:

        《a href=“mailto:muye@bupt:~$”》muye@bupt:~$《/a》 ps -ef | grep $$

        muye 4750 4745 0 15:47 pts/1 00:00:00 bash

        muye 5331 4750 0 16:51 pts/1 00:00:00 ps -ef

        muye 5332 4750 0 16:51 pts/1 00:00:00 grep --color=auto 4750

        去掉后兩個(gè)

        上面就是Linux下查看shell的方法介紹了,如果你不知道要如何查看shell,不妨試試本文介紹的方法,一般可用命令進(jìn)行查看,您了解了嗎?

      310885