The PyMiers

Wednesday 9 October 2013

[linux] procps = ps + kill + sysctl + top + watch + ...

Hỏi và trả lời theo phong cách CCGU:

hvn@u1204: ~ () $ whatis procps
procps: nothing appropriate.
hvn@u1204: ~ () $ whatis ps
ps (1)               - report a snapshot of the current processes.
hvn@u1204: ~ () $ which ps
hvn@u1204: ~ () $ dpkg -S `which ps` #hoặc dpkg -S $(which ps)
procps: /bin/ps
hvn@u1204: ~ () $ apt-cache show procps

Package: procps
Priority: required
Section: admin
Installed-Size: 618
Maintainer: Ubuntu Developers <>
Original-Maintainer: Craig Small <>
Architecture: i386
Version: 1:3.2.8-11ubuntu6
Replaces: bsdutils (<< 2.9x-1), watch
Provides: watch
Depends: libc6 (>= 2.4), libncurses5 (>= 5.5-5~), libncursesw5 (>= 5.6+20070908), libtinfo5, upstart-job, lsb-base (>= 3.0-10), initscripts
Recommends: psmisc
Conflicts: libproc-dev (<< 1:1.2.6-2), pgrep (<< 3.3-5), procps-nonfree, w-bassman (<< 1.0-3), watch
Filename: pool/main/p/procps/procps_3.2.8-11ubuntu6_i386.deb
Size: 225152
MD5sum: 849a4a2428d2eb0d17a0df71e2088163
SHA1: 5131f5988ec52d94f226c9984cd9dffaff5de0d5
SHA256: a4a9c7b50b6c90458c1ace0ae45dd31bdbc030824ba446e10fa5b5ed8a1c5d98
Description-en: /proc file system utilities
 This package provides command line and full screen utilities for browsing
 procfs, a "pseudo" file system dynamically generated by the kernel to
 provide information about the status of entries in its process table
 (such as whether the process is running, stopped, or a "zombie").
 It contains free, kill, pkill, pgrep, pmap, ps, pwdx, skill, slabtop,
 snice, sysctl, tload, top, uptime, vmstat, w, and watch.
Multi-Arch: foreign
Description-md5: 943f3288c1aaa379fca73a3ff1a35278
Origin: Ubuntu
Supported: 5y
Task: minimal
Và xem các chương trình mà gói này cung cấp:

hvn@u1204: ~ () $ dpkg -L procps | grep bin # grep bin vì các file chạy thường nằm trong thư mục bin

procps là tên package cung cấp /proc file system utilities.
Nó là package cung cấp cho người dùng nhiều công cụ để theo dõi / quản lý hệ thống nhất.

Ngoài ra, bạn cũng có thể để mắt đến psmisc

hvn@u1204: ~ () $ apt-cache show psmisc                                                                          
Package: psmisc
Priority: standard
Section: admin
Installed-Size: 216
Maintainer: Ubuntu Developers <>
Original-Maintainer: Craig Small <>
Architecture: i386
Version: 22.15-2ubuntu1.1
Replaces: procps (<< 1:1.2)
Depends: libc6 (>= 2.8), libtinfo5
Filename: pool/main/p/psmisc/psmisc_22.15-2ubuntu1.1_i386.deb
Size: 51058
MD5sum: 1f5558e70b5c3f30eb08d47d0de0f5ac
SHA1: e51bfd55895b806ca0d62bbac75d27a2b29a25f4
SHA256: 4a725c576e54c9290cfccd205403d4781918ab07c33df1e6485b521f0727f9b4
Description-en: utilities that use the proc file system
 This package contains miscellaneous utilities that use the proc FS:
  - fuser: identifies processes that are using files or sockets.
  - killall: kills processes by name (e.g. "killall -HUP named").
  - peekfd: shows the data traveling over a file descriptor.
  - pstree: shows currently running processes as a tree.
  - prtstat: print the contents of /proc/<pid>/stat
Description-md5: f223601d881677b6b3cc176c4915b053
Origin: Ubuntu
Supported: 5y


No comments:

Post a Comment