OS第1次实验报告:熟悉使用Linux命令和剖析ps命令

  • 姓名 那宝龙
  • 学号 201821121054
  • 班级 计算1812

1. 实验环境介绍

给出实验环境:

  • 操作系统:Windows 10(os内部版本 17134.1304)
  • 平台:Cygwin

      

 

 

2. 常用命令使用

 

 

 

 

3. 剖析ps命令

.ps使用方法:

SYNOPSIS
       ps [−aA] [−defl] [−g grouplist] [−G grouplist]
           [−n namelist] [−o format]... [−p proclist] [−t termlist]
           [−u userlist] [−U userlist]

.ps参数:

  

       −a        Write  information  for all processes associated with termi‐
                 nals.  Implementations may omit  session  leaders  from  this
                 list.

       −A        Write information for all processes.

       −d        Write information for all processes, except session leaders.

       −e        Write information for all processes.  (Equivalent to −A.)

       −f        Generate  a  full  listing.  (See  the STDOUT section for the
                 contents of a full listing.)

       −g grouplist
                 Write information for processes  whose  session  leaders  are
                 given  in  grouplist.   The application shall ensure that the
                 grouplist is a single argument in the form of  a  <blank>  or
                 <comma>-separated list.

       −G grouplist
                 Write  information  for processes whose real group ID numbers
                 are given in grouplist.  The application  shall  ensure  that
                 the  grouplist  is a single argument in the form of a <blank>
                 or <comma>-separated list.

       −l        Generate a long listing. (See STDOUT for the  contents  of  a
                 long listing.)

       −n namelist
                 Specify  the  name  of an alternative system namelist file in
                 place of the default. The name of the default  file  and  the
                 format of a namelist file are unspecified.

       −o format Write information according to the format specification given
                 in format.  This is fully described in  the  STDOUT  section.
                 Multiple  −o options can be specified; the format specifica‐
                 tion shall be interpreted as the <space>-separated  concate‐
                 nation of all the format option-arguments.

       −p proclist
                 Write  information for processes whose process ID numbers are
                 given in proclist.  The application  shall  ensure  that  the
                 proclist  is  a  single  argument in the form of a <blank> or
                 <comma>-separated list.

       −t termlist
                 Write information for  processes  associated  with  terminals
                 given  in  termlist.   The  application shall ensure that the
                 termlist is a single argument in the form  of  a  <blank>  or
                 <comma>-separated  list.  Terminal identifiers shall be given
                 in an implementation-defined format.  On XSI-conformant sys‐
                 tems,  they  shall be given in one of two forms: the device's
                 filename (for example, tty04) or, if  the  device's  filename
                 starts with tty, just the identifier following the characters
                 tty (for example, "04").

       −u userlist
                 Write information for processes whose user ID numbers or lo‐
                 gin  names are given in userlist.  The application shall en‐
                 sure that the userlist is a single argument in the form of  a
                 <blank>  or  <comma>-separated list. In the listing, the nu‐
                 merical user ID shall be written  unless  the  −f  option  is
                 used, in which case the login name shall be written.

       −U userlist
                 Write information for processes whose real user ID numbers or
                 login names are given in  userlist.   The  application  shall
                 ensure  that the userlist is a single argument in the form of
                 a <blank> or <comma>-separated list.

       With the exception of −f, −l, −n namelist, and −o format,  all  of  the
       options  shown  are used to select processes. If any are specified, the
       default list shall be ignored and ps shall select the processes repre‐
       sented by the inclusive OR of all the selection-criteria options

 

.运行ps:

nabaolong@DESKTOP-84KNVJ3 ~
$ ps
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
     1525    1514    1525      15144  pty0      197609 10:59:23 /usr/bin/ps
     1514    1513    1514       3548  pty0      197609 10:51:46 /usr/bin/bash
     1513       1    1513      19000  ?         197609 10:51:45 /usr/bin/mintty

.运行用户名命令:

nabaolong@DESKTOP-84KNVJ3 ~
$ ps -ef
     UID     PID    PPID  TTY        STIME COMMAND
nabaolon    1526    1514 pty0     11:05:24 /usr/bin/ps
nabaolon    1514    1513 pty0     10:51:46 /usr/bin/bash
nabaolon    1513       1 ?        10:51:45 /usr/bin/mintty
    参数-e能够显示用户的所有进程;
    参数-f能够显示进程的UID、PID和STIME。

 

.运行ps aux:

nabaolong@DESKTOP-84KNVJ3 ~
$ ps aux
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
     1514    1513    1514       3548  pty0      197609 10:51:46 /usr/bin/bash
     1527    1514    1527      11836  pty0      197609 11:06:06 /usr/bin/ps
     1513       1    1513      19000  ?         197609 10:51:45 /usr/bin/mintty
   参数a显示现行终端机下的所有程序,包括其他用户的程序;
    参数u以用户为主的格式来显示程序状况;
    参数x显示所有程序,不以终端机来区分。

.运行ps -aW:

nabaolong@DESKTOP-84KNVJ3 ~
$ ps -aW
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
    65540       0       0          4  ?              0   Mar  4 System
    65656       0       0        120  ?              0   Mar  4 Registry
    65952       0       0        416  ?              0   Mar  4 C:\Windows\System32\smss.exe
    66180       0       0        644  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    66288       0       0        752  ?              0   Mar  4 C:\Windows\System32\wininit.exe
    66296       0       0        760  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    66364       0       0        828  ?              0   Mar  4 C:\Windows\System32\services.exe
    66384       0       0        848  ?              0   Mar  4 C:\Windows\System32\lsass.exe
    66504       0       0        968  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    66532       0       0        996  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    65624       0       0         88  ?              0   Mar  4 C:\Windows\System32\WUDFHost.exe
    65876       0       0        340  ?              0   Mar  4 C:\Windows\System32\fontdrvhost.exe
    66184       0       0        648  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    66440       0       0        904  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    66804       0       0       1268  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    66828       0       0       1292  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    66972       0       0       1436  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    66980       0       0       1444  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67108       0       0       1572  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67116       0       0       1580  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67280       0       0       1744  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67372       0       0       1836  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67380       0       0       1844  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67388       0       0       1852  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67396       0       0       1860  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67524       0       0       1988  ?              0   Mar  4 C:\Windows\System32\DriverStore\FileRepository\cui_dch.inf_amd64_f3a64c75ee4defb7\igfxCUIService.exe
    66740       0       0       1204  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67340       0       0       1804  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67328       0       0       1792  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67656       0       0       2120  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67664       0       0       2128  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67728       0       0       2192  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67796       0       0       2260  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67804       0       0       2268  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67872       0       0       2336  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67932       0       0       2396  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68052       0       0       2516  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68240       0       0       2704  ?              0   Mar  4 C:\Windows\System32\dasHost.exe
    68264       0       0       2728  ?              0   Mar  4 C:\Program Files\NVIDIA Corporation\Display.NvContainer\NVDisplay.Container.exe
    68472       0       0       2936  ?              0   Mar  4 D:\QQPCMgr\13.5.20525.234\QQPCRTP.exe
    68600       0       0       3064  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68228       0       0       2692  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68616       0       0       3080  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68684       0       0       3148  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68692       0       0       3156  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68740       0       0       3204  ?              0   Mar  4 MemCompression
    68836       0       0       3300  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68908       0       0       3372  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68936       0       0       3400  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    68972       0       0       3436  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69064       0       0       3528  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69092       0       0       3556  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69132       0       0       3596  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69180       0       0       3644  ?              0   Mar  4 C:\Windows\System32\spoolsv.exe
    69232       0       0       3696  ?              0   Mar  4 C:\Windows\System32\wlanext.exe
    69252       0       0       3716  ?              0   Mar  4 C:\Windows\System32\conhost.exe
    69308       0       0       3772  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69636       0       0       4100  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69644       0       0       4108  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69660       0       0       4124  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69672       0       0       4136  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69680       0       0       4144  ?              0   Mar  4 C:\Program Files\Common Files\Intel\WirelessCommon\RegSrvc.exe
    69688       0       0       4152  ?              0   Mar  4 C:\Program Files (x86)\Common Files\Tencent\QQProtect\Bin\QQProtect.exe
    69700       0       0       4164  ?              0   Mar  4 C:\Windows\System32\Intel\DPTF\esif_uf.exe
    69724       0       0       4188  ?              0   Mar  4 C:\Program Files\Intel\WiFi\bin\EvtEng.exe
    69764       0       0       4228  ?              0   Mar  4 C:\Program Files\Intel\WiFi\bin\ZeroConfigService.exe
    69772       0       0       4236  ?              0   Mar  4 C:\Windows\System32\RtkAudUService64.exe
    69788       0       0       4252  ?              0   Mar  4 C:\Windows\System32\DriverStore\FileRepository\iastorac.inf_amd64_8559c34713c70ce4\RstMwService.exe
    69796       0       0       4260  ?              0   Mar  4 C:\Program Files\Rivet Networks\SmartByte\SmartByteNetworkService.exe
    69804       0       0       4268  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69812       0       0       4276  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69820       0       0       4284  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69832       0       0       4296  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69840       0       0       4304  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69852       0       0       4316  ?              0   Mar  4 C:\Windows\System32\DriverStore\FileRepository\wavesapo.inf_amd64_a194a4f570d4fb88\WavesSysSvc64.exe
    69868       0       0       4332  ?              0   Mar  4 C:\Windows\System32\SecurityHealthService.exe
    69972       0       0       4436  ?              0   Mar  4 C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe
    70264       0       0       4728  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    70292       0       0       4756  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    70476       0       0       4940  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    70544       0       0       5008  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    70668       0       0       5132  ?              0   Mar  4 C:\Program Files\Rivet Networks\SmartByte\RNDBWMService.exe
    70740       0       0       5204  ?              0   Mar  4 D:\program files\TeamViewer\TeamViewer_Service.exe
    71352       0       0       5816  ?              0   Mar  4 C:\Windows\System32\wbem\unsecapp.exe
    71628       0       0       6092  ?              0   Mar  4 C:\Windows\Microsoft.NET\Framework64\v3.0\WPF\PresentationFontCache.exe
    70728       0       0       5192  ?              0   Mar  4 C:\Windows\System32\wbem\WmiPrvSE.exe
    71068       0       0       5532  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    71788       0       0       6252  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    71964       0       0       6428  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    72396       0       0       6860  ?              0   Mar  4 C:\Program Files\Rivet Networks\SmartByte\RNDBWM.exe
    72404       0       0       6868  ?              0   Mar  4 C:\Windows\System32\conhost.exe
    73236       0       0       7700  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    73536       0       0       8000  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    74732       0       0       9196  ?              0   Mar  4 C:\Windows\System32\SearchIndexer.exe
    75584       0       0      10048  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    75608       0       0      10072  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    69372       0       0       3836  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    79772       0       0      14236  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    76812       0       0      11276  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    77720       0       0      12184  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    75864       0       0      10328  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    74112       0       0       8576  ?              0   Mar  4 C:\Program Files\Dell\DellDataVault\DDVRulesProcessor.exe
    76296       0       0      10760  ?              0   Mar  4 C:\Program Files (x86)\Dell\UpdateService\ServiceShell.exe
    67512       0       0       1976  ?              0   Mar  4 C:\Windows\System32\dllhost.exe
    76868       0       0      11332  ?              0   Mar  4 C:\Windows\System32\msdtc.exe
    81008       0       0      15472  ?              0   Mar  4 C:\Program Files\rempl\sedsvc.exe
    81056       0       0      15520  ?              0   Mar  4 C:\Windows\System32\SgrmBroker.exe
    81148       0       0      15612  ?              0   Mar  4 C:\Program Files\Dell\DellDataVault\DDVDataCollector.exe
    81228       0       0      15692  ?              0   Mar  4 C:\Program Files\Dell\DellDataVault\DDVCollectorSvcApi.exe
    81352       0       0      15816  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67736       0       0       2200  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    66592       0       0       1056  ?              0   Mar  4 C:\Windows\System32\dllhost.exe
    72532       0       0       6996  ?              0   Mar  4 C:\Windows\servicing\TrustedInstaller.exe
    69696       0       0       4160  ?              0   Mar  4 C:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17134.1120_none_c3e5cafe697124bd\TiWorker.exe
    70328       0       0       4792  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    84404       0       0      18868  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    67500       0       0       1964  ?              0   Mar  4 C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe
    73440       0       0       7904  ?              0   Mar  4 C:\Windows\System32\conhost.exe
    78248       0       0      12712  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    83872       0       0      18336  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    70824       0       0       5288  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    80304       0       0      14768  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    83692       0       0      18156  ?              0   Mar  4 C:\Program Files\Dell\DellDataVault\nvapiw.exe
    83784       0       0      18248  ?              0   Mar  4 C:\Windows\System32\wbem\WmiPrvSE.exe
    82040       0       0      16504  ?              0   Mar  4 C:\Windows\System32\csrss.exe
    83076       0       0      17540  ?              0   Mar  4 C:\Windows\System32\winlogon.exe
    70424       0       0       4888  ?              0   Mar  4 C:\Windows\System32\fontdrvhost.exe
    80768       0       0      15232  ?              0   Mar  4 C:\Windows\System32\dwm.exe
    79136       0       0      13600  ?              0   Mar  4 C:\Program Files\NVIDIA Corporation\Display.NvContainer\NVDisplay.Container.exe
    70412       0       0       4876  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    81668       0       0      16132  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    77000       0       0      11464  ?              0   Mar  4 C:\Windows\System32\RtkAudUService64.exe
    77144       0       0      11608  ?              0 09:04:36 C:\Windows\System32\sihost.exe
    84596       0       0      19060  ?              0 09:04:36 C:\Windows\System32\svchost.exe
    71400       0       0       5864  ?              0 09:04:36 C:\Windows\System32\svchost.exe
    75196       0       0       9660  ?              0 09:04:36 C:\Windows\System32\DriverStore\FileRepository\cui_dch.inf_amd64_f3a64c75ee4defb7\igfxEM.exe
    81420       0       0      15884  ?              0 09:04:36 C:\Windows\System32\taskhostw.exe
    83212       0       0      17676  ?              0 09:04:36 C:\Windows\explorer.exe
    68796       0       0       3260  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    79956       0       0      14420  ?              0 09:04:38 C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe
    77776       0       0      12240  ?              0 09:04:38 C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe
    69188       0       0       3652  ?              0 09:04:38 C:\Windows\System32\RuntimeBroker.exe
    81964       0       0      16428  ?              0 09:04:38 C:\Windows\System32\RuntimeBroker.exe
    84212       0       0      18676  ?              0 09:04:39 C:\Windows\System32\dllhost.exe
    81136       0       0      15600  ?              0 09:04:39 C:\Windows\System32\RuntimeBroker.exe
    66448       0       0        912  ?              0 09:04:39 C:\Windows\System32\ctfmon.exe
    68896       0       0       3360  ?              0 09:04:39 C:\Windows\System32\SettingSyncHost.exe
    77400       0       0      11864  ?              0 09:04:40 C:\Windows\SystemApps\Microsoft.LockApp_cw5n1h2txyewy\LockApp.exe
    78836       0       0      13300  ?              0 09:04:40 C:\Windows\System32\InputMethod\CHS\ChsIME.exe
    69712       0       0       4176  ?              0 09:04:40 C:\Windows\System32\svchost.exe
    83344       0       0      17808  ?              0 09:04:40 C:\Windows\System32\RuntimeBroker.exe
    76848       0       0      11312  ?              0 09:04:43 C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\RemindersServer.exe
    79960       0       0      14424  ?              0 09:04:49 C:\Program Files\Windows Defender\MSASCuiL.exe
    77208       0       0      11672  ?              0 09:04:50 C:\Windows\System32\DriverStore\FileRepository\wavesapo.inf_amd64_a194a4f570d4fb88\WavesSvc64.exe
    67544       0       0       2008  ?              0 09:04:51 C:\Program Files (x86)\MySQL\MySQL Notifier 1.1\MySQLNotifier.exe
    66676       0       0       1140  ?              0 09:04:52 C:\Users\17865\AppData\Local\FLYSVR\winhost.exe
    77340       0       0      11804  ?              0 09:04:53 D:\QQPCMgr\13.5.20525.234\QQPCTray.exe
    78232       0       0      12696  ?              0 09:05:25 C:\Windows\SystemApps\InputApp_cw5n1h2txyewy\WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe
    79476       0       0      13940  ?              0 09:05:29 C:\Windows\System32\ApplicationFrameHost.exe
    73600       0       0       8064  ?              0 09:05:29 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe
    73900       0       0       8364  ?              0 09:05:29 C:\Windows\System32\browser_broker.exe
    65860       0       0        324  ?              0 09:05:30 C:\Windows\System32\dllhost.exe
    83752       0       0      18216  ?              0 09:05:30 C:\Windows\System32\RuntimeBroker.exe
    74408       0       0       8872  ?              0 09:05:30 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    71372       0       0       5836  ?              0 09:05:37 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    84852       0       0      19316  ?              0 09:05:49 C:\Program Files\Intel\Intel(R) Rapid Storage Technology\IAStorIcon.exe
    68536       0       0       3000  ?              0   Mar  4 C:\Windows\System32\sppsvc.exe
    77344       0       0      11808  ?              0 09:09:31 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    66304       0       0        768  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    83348       0       0      17812  ?              0   Mar  4 C:\Windows\System32\Windows.WARP.JITService.exe
    73996       0       0       8460  ?              0 09:14:39 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    76596       0       0      11060  ?              0 09:20:24 C:\Program Files\WindowsApps\Microsoft.Windows.Photos_2020.19081.28230.0_x64__8wekyb3d8bbwe\Microsoft.Photos.exe
    73960       0       0       8424  ?              0 09:20:29 C:\Windows\System32\RuntimeBroker.exe
    84012       0       0      18476  ?              0 09:21:44 C:\Program Files\WindowsApps\Microsoft.ZuneMusic_10.20011.13511.0_x64__8wekyb3d8bbwe\Music.UI.exe
    73492       0       0       7956  ?              0 09:21:44 C:\Windows\System32\RuntimeBroker.exe
    83936       0       0      18400  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    77592       0       0      12056  ?              0 09:24:12 C:\Windows\System32\RuntimeBroker.exe
    83496       0       0      17960  ?              0 09:24:28 C:\Program Files\WindowsApps\Microsoft.WindowsStore_12003.1001.1.0_x64__8wekyb3d8bbwe\WinStore.App.exe
    78312       0       0      12776  ?              0 09:40:34 C:\Windows\System32\smartscreen.exe
    70052       0       0       4516  ?              0 09:40:40 D:\Bin\QQ.exe
    82136       0       0      16600  ?              0 09:40:41 D:\Bin\TXPlatform.exe
    68556       0       0       3020  ?              0 09:45:34 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    84928       0       0      19392  ?              0   Mar  4 C:\Windows\System32\Windows.WARP.JITService.exe
    71592       0       0       6056  ?              0 10:13:23 C:\Windows\System32\DataExchangeHost.exe
    75100       0       0       9564  ?              0 10:13:45 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    81360       0       0      15824  ?              0 10:25:36 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    66888       0       0       1352  ?              0 10:43:58 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    79756       0       0      14220  ?              0 10:50:55 C:\Windows\System32\audiodg.exe
     1513       1    1513      19000  ?         197609 10:51:45 /usr/bin/mintty
    74268       0       0       8732  ?              0 10:51:46 C:\Windows\System32\conhost.exe
     1514    1513    1514       3548  pty0      197609 10:51:46 /usr/bin/bash
    79088       0       0      13552  ?              0 10:53:21 C:\Windows\System32\SearchProtocolHost.exe
    76796       0       0      11260  ?              0 11:04:50 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    84324       0       0      18788  ?              0 11:04:59 C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe
    79176       0       0      13640  ?              0 11:07:59 C:\Windows\System32\backgroundTaskHost.exe
    67268       0       0       1732  ?              0   Mar  4 C:\Windows\System32\svchost.exe
    83916       0       0      18380  ?              0 11:07:59 C:\Windows\System32\RuntimeBroker.exe
    79928       0       0      14392  ?              0   Mar  4 C:\Windows\System32\SearchFilterHost.exe
     1528    1514    1528      18056  pty0      197609 11:08:16 /usr/bin/ps
参数-w显示窗口和cygwin进程

.运行ps Nt:

nabaolong@DESKTOP-84KNVJ3 ~
$ ps Nt
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
     1514    1513    1514       3548  pty0      197609 10:51:46 /usr/bin/bash
     1529    1514    1529      12268  pty0      197609 11:09:44 /usr/bin/ps
     1513       1    1513      19000  ?         197609 10:51:45 /usr/bin/mintty
   参数-N显示所有的程序,除了执行ps指令终端机下的程序之外。
   参数-t指定终端机编号,并列出属于该终端机的程序的状况。

.运行ps defl:

nabaolong@DESKTOP-84KNVJ3 ~
$ ps defl
      PID    PPID    PGID     WINPID   TTY         UID    STIME COMMAND
     1514    1513    1514       3548  pty0      197609 10:51:46 /usr/bin/bash
     1530    1514    1530       3924  pty0      197609 11:11:00 /usr/bin/ps
     1513       1    1513      19000  ?         197609 10:51:45 /usr/bin/mintty
    参数-d为所有流程编写信息,会话负责人除外。
    参数-l较详细地显示该PID的信息。

.解释返回中的字段:

     uid(user id):用户id;
     pid(process id):进程id;
     ppid(parent process id):父进程id;
     c:cpu使用的资源百分比;
    stime:系统启动时间;
     pgid(process group id):进程组id号;
     tty(teletype):终端的次要装置号码;
     time:使用的cpu时间;
     cmd:所下达的指令。

 

 

 

4. 通过该实验产生新的疑问及解答

1)安装软件时一开始网站打不开,就在一个app里下载了一个旧版本,但是安装时就不行

解答:找到已经安装好的同学要到了安装包,顺利的下载了软件

2)用户名更改时命令l和|未区分好耽误了很多时间

解答:多次尝试加外界求助完成了用户名修改

 

posted @ 2020-03-07 11:18  baolong22  阅读(923)  评论(0编辑  收藏  举报