最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

進程狀態(tài)ps -ef中的e、f含義講解

 更新時間:2022年11月07日 11:17:40   作者:pilaf1990  
這篇文章主要介紹了進程狀態(tài)ps -ef中的e、f含義講解,通過本文學習我們知道-e和-A都顯示有關其他用戶進程的信息,包括那些沒有控制終端的進程,-f顯示用戶id,進程id,父進程id,最近CPU使用情況,進程開始時間等等,具體含義及更多命令跟隨小編通過本文學習

linux或mac控制臺下輸入ps -ef | grep 關鍵字可以查看是否有相應的進程啟動信息中包含關鍵字。如:

ps的意思是process status,即進程狀態(tài)。在控制臺執(zhí)行man ps命令可以查看ps命令后面的命令選項的含義如下:

     The options are as follows:

     -A      Display information about other users' processes, including those without controlling ter-
             minals.

     -a      Display information about other users' processes as well as your own.  This will skip any
             processes which do not have a controlling terminal, unless the -x option is also specified.

     -C      Change the way the CPU percentage is calculated by using a ``raw'' CPU calculation that
             ignores ``resident'' time (this normally has no effect).

     -c      Change the ``command'' column output to just contain the executable name, rather than the
             full command line.

     -d      Like -A, but excludes session leaders.

     -E      Display the environment as well.  This does not reflect changes in the environment after
             process launch.

     -e      Identical to -A.

     -f      Display the uid, pid, parent pid, recent CPU usage, process start time, controlling tty,
             elapsed CPU usage, and the associated command.  If the -u option is also used, display the
             user name rather then the numeric uid.  When -o or -O is used to add to the display follow-
             ing -f, the command field is not truncated as severely as it is in other formats.
     
     -G      Display information about processes which are running with the specified real group IDs.

     -g      Display information about processes with the specified process group leaders.

     -h      Repeat the information header as often as necessary to guarantee one header per page of
             information.

     -j      Print information associated with the following keywords: user, pid, ppid, pgid, sess,
             jobc, state, tt, time, and command.

     -L      List the set of keywords available for the -O and -o options.

     -l      Display information associated with the following keywords: uid, pid, ppid, flags, cpu,
             pri, nice, vsz=SZ, rss, wchan, state=S, paddr=ADDR, tty, time, and command=CMD.

     -M      Print the threads corresponding to each task.

     -m      Sort by memory usage, instead of the combination of controlling terminal and process ID.

     -O      Add the information associated with the space or comma separated list of keywords speci-
             fied, after the process ID, in the default information display.  Keywords may be appended
             with an equals (`=') sign and a string.  This causes the printed header to use the speci-
             fied string instead of the standard header.
     
     -o      Display information associated with the space or comma separated list of keywords speci-
             fied.  Multiple keywords may also be given in the form of more than one -o option.  Key-
             words may be appended with an equals (`=') sign and a string.  This causes the printed
             header to use the specified string instead of the standard header.  If all keywords have
             empty header texts, no header line is written.

     -p      Display information about processes which match the specified process IDs.

     -r      Sort by current CPU usage, instead of the combination of controlling terminal and process
             ID.

     -S      Change the way the process time is calculated by summing all exited children to their par-
             ent process.

     -T      Display information about processes attached to the device associated with the standard
             input.

     -t      Display information about processes attached to the specified terminal devices.

     -U      Display the processes belonging to the specified real user IDs.

     -u      Display the processes belonging to the specified usernames.

     -v      Display information associated with the following keywords: pid, state, time, sl, re,
             pagein, vsz, rss, lim, tsiz, %cpu, %mem, and command.  The -v option implies the -m option.

     -w      Use 132 columns to display information, instead of the default which is your window size.
             If the -w option is specified more than once, ps will use as many columns as necessary
             without regard for your window size.  When output is not to a terminal, an unlimited number
             of columns are always used.
     
     -X      When displaying processes matched by other options, skip any processes which do not have a
             controlling terminal.

     -x      When displaying processes matched by other options, include processes which do not have a
             controlling terminal.  This is the opposite of the -X option.  If both -X and -x are speci-
             fied in the same command, then ps will use the one which was specified last.

可見
-e-A的意思是一樣的,即顯示有關其他用戶進程的信息,包括那些沒有控制終端的進程。
-f顯示用戶id,進程id,父進程id,最近CPU使用情況,進程開始時間等等。

ps -ef命令含義

工作中,平時都是通過ps -ef 去進行查看系統(tǒng)上的運行的所有進程,是一個特別常用的命令;這里說下該命令的具體含義:

只執(zhí)行ps命令,默認是顯示當前控制臺下屬于當前用戶的進程;

參數(shù) -e  顯示運行在系統(tǒng)上的所有進程

參數(shù) -f  擴展顯示輸出

UID      啟動進程的用戶

PID      進程的進程號

PPID    父進程進程號

C          cpu使用率

STIME   進程啟動時的系統(tǒng)時間

TTY       進程啟動時終端設備

TIME     運行進程需要的累積CPU時間

CMD   啟動程序名稱或命令

更多的ps命令可以通過 man ps 或者  ps --help all 來獲取

到此這篇關于進程狀態(tài)ps -ef中的e、f含義講解的文章就介紹到這了,更多相關ps -ef中e、f含義內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!

您可能感興趣的文章:

相關文章

  • 使用shell來發(fā)tcp包的方法

    使用shell來發(fā)tcp包的方法

    今天小編就為大家分享一篇關于使用shell來發(fā)tcp包的方法,小編覺得內容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2019-04-04
  • 讓Linux下的cron以秒為單位執(zhí)行shell腳本的3種方法

    讓Linux下的cron以秒為單位執(zhí)行shell腳本的3種方法

    這篇文章主要介紹了讓Linux下的cron以秒為單位執(zhí)行shell腳本的3種方法,cron默認只支持以分為單位執(zhí)行Shell腳本的,需要的朋友可以參考下
    2014-10-10
  • 利用Shell解析處理XML的方法匯總

    利用Shell解析處理XML的方法匯總

    這篇文章主要給大家總結介紹了關于利用Shell解析處理XML的方法,分別介紹了關于xmlint、xpath和xml2三種工具的使用,文中通過示例代碼介紹的非常詳細,需要的朋友可以參考借鑒,下面隨著小編來一起學習學習吧。
    2017-10-10
  • Shell腳本實現(xiàn)的memcached進程監(jiān)控

    Shell腳本實現(xiàn)的memcached進程監(jiān)控

    這篇文章主要介紹了Shell腳本實現(xiàn)的memcached進程監(jiān)控,實現(xiàn)功能為監(jiān)控memcached進程是否存在,不存在則啟動memcached并重載nginx,需要的朋友可以參考下
    2014-07-07
  • bash腳本輸入密碼不回顯問題的解決方法

    bash腳本輸入密碼不回顯問題的解決方法

    編寫一個bash腳本時,需要用戶輸入一個密碼,方可繼續(xù)后續(xù)流程,但是又要保證用戶輸入的密碼不會被別人看到,因此排除了通過參數(shù)將密碼傳入腳本的方案
    2013-08-08
  • Shell中字符串排序的幾種方法

    Shell中字符串排序的幾種方法

    今天小編就為大家分享一篇關于Shell中字符串排序的幾種方法,小編覺得內容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2019-03-03
  • Linux進程控制詳解及實例

    Linux進程控制詳解及實例

    這篇文章主要介紹了Linux進程控制詳解及實例的相關資料,需要的朋友可以參考下
    2017-04-04
  • Linux下is not in the sudoers file的解決方案

    Linux下is not in the sudoers file的解決

    當我們使用sudo命令切換用戶的時候可能會遇到提示以下錯誤:用戶名 is not in the sudoers file.本文給大家分享原因分析及解決方案,感興趣的朋友跟隨小編一起看看吧
    2023-02-02
  • sed使用正則表達式進行替換例子以及注意事項

    sed使用正則表達式進行替換例子以及注意事項

    在使用sed替換時,可以使用正則表達式分組來保留部分匹配內容,下面這篇文章主要給大家介紹了關于sed使用正則表達式進行替換例子以及注意事項的相關資料,需要的朋友可以參考下
    2024-03-03
  • Linux使用iptables實現(xiàn)屏蔽ip地址的示例詳解

    Linux使用iptables實現(xiàn)屏蔽ip地址的示例詳解

    netfilter/iptables(簡稱為iptables)組成Linux平臺下的包過濾防火墻,與大多數(shù)的Linux軟件一樣,這個包過濾防火墻是免費的。本文就來利用iptables實現(xiàn)屏蔽ip地址,需要的可以參考一下
    2022-10-10

最新評論

民县| 沂水县| 石台县| 长宁县| 淄博市| 平乡县| 当阳市| 晋城| 晋城| 博罗县| 凤山市| 通河县| 繁昌县| 北海市| 宣武区| 鹿邑县| 丹寨县| 女性| 东丽区| 崇礼县| 汽车| 乌什县| 江达县| 瑞丽市| 横峰县| 蛟河市| 松江区| 长武县| 澄城县| 淮滨县| 武平县| 麻栗坡县| 苍溪县| 汤阴县| 手游| 班玛县| 新民市| 万源市| 延吉市| 西贡区| 营山县|