A modern replacement for ps written in Rust

Overview

procs

procs is a replacement for ps written in Rust.

Actions Status Build Status codecov

Changelog Crates.io procs homebrew

Documentation quick links

Features

  • Output by the colored and human-readable format
    • Automatic theme detection based on terminal background
  • Keyword search over multi-column
  • Some additional information which are not supported by ps
    • TCP/UDP port
    • Read/Write throughput
    • Docker container name
    • More memory information
  • Pager support
  • Watch mode like top
  • Tree view

Platform

  • Linux is supported.
  • macOS is experimentally supported.
    • macOS version is checked on Travis CI environment only.
    • The issues caused by real-machine are welcome.
  • Windows is experimentally supported.
    • pager is not supported

Installation

Download binary

Download from release page, and extract to the directory in PATH.

Packaging status

Nixpkgs

You can install from Nixpkgs

nix-env --install procs

snapcraft

You can install from snapcraft

sudo snap install procs

homebrew

You can install from homebrew

brew install procs

Alpine Linux

You can install from Alpine Linux repository

The correct repository (see above link for the most up-to-date information) should be enabled before apk add.

sudo apk add procs

Arch Linux

You can install from Arch Linux community repository

sudo pacman -S procs

Scoop

You can install by scoop

scoop install procs

Fedora

sudo dnf install procs

RPM

You can install by rpm command.

sudo rpm -i https://github.com/dalance/procs/releases/download/v0.11.3/procs-0.11.3-1.x86_64.rpm

Cargo

You can install by cargo.

cargo install procs

Installation Notes

Permission issue

On macOS, normal user can't access all process information of other users. On Linux, normal user can't access some information (ex. Read/Write throughput) of other users.

If you want to show all information, you should use sudo.

$ sudo procs
[sudo] password for ...:

If you want to skip password input, you can add the following entry to /etc/sudoers.

[user or group] ALL= NOPASSWD: [procs binary path]
// ex. myuser ALL= NOPASSWD: /usr/local/bin/procs

Usage

In the following screenshots, config/large.toml is used as the configuration.

Show all processes

Type procs only. It shows the information of all processes.

$ procs

procs

Search by non-numeric keyword

If you add any keyword as argument, it is matched to USER, Command by default.

$ procs zsh

If you want to add columns matching to non-numeric keyword, nonnumeric_search option can be used in configuration file.

procs_zsh

Search by numeric keyword

If a numeric is used as the keyword, it is matched to PID by default. Numeric is treated as exact match, and non-numeric is treated as partial match by default.

$ procs --or 6000 60000 60001 16723

If you want to add columns matching to numeric keyword, numeric_search option can be used in configuration file.

procs_port

Note that procfs permissions only allow identifying listening ports for processes owned by the current user, so not all ports will show up unless run as root.

Logical operation of search keywords

If there are some keywords, logical operation between the keywords can be specified by commandline option.

  • --and : The processes to match with all keywords are shown.
  • --or : The processes to match with any keyword are shown.
  • --nand: The processes are shown unless these match with all keywords.
  • --nor : The processes are shown unless these match with any keyword.

The default operation can be specified in the configuration file. See [search] section.

Show Docker container name

If you have access permission to docker daemon ( unix:///var/run/docker.sock ), Docker column is added.

$ procs growi

procs_docker

Note that procs gets the container information through UNIX domain socket, so Docker Toolbox on macOS ( doesn't use UNIX domain socket ) is not supported. Docker Desktop for Mac is supported but not tested.

Pager

If output lines exceed terminal height, pager is used automatically. This behavior and pager command can be specified by configuration file.

Watch mode

If --watch or --watch-interval <second> option is used, procs automatically updates output like top. If --watch is used, the update interval becomes 1s. The update interval can be specified by the argument of --watch-interval. There are some keyboard shortcuts to control.

  • n: Change the sort column to the next column
  • p: Change the sort column to the previous column
  • a: Change the sort order to ascending
  • d: Change the sort order to descending
  • q: Quit

Tree view

If --tree option is used, processes are sorted by dependency order and dependency tree is shown at left side.

$ procs --tree

procs_tree

Sort column

Column sort order can be changed by --sorta or --sortd option. The last character of --sorta and --sortd means sort order: "a"scending and "d"escending.

The column for sort is selected by the option keyword. The keyword is matched with column kind that is shown by --list option. If --sorta cputime, column is sorted by CpuTime with ascending order. If --sortd rss, column is sorted by VmRss with descending order. The keyword is matched partially and case is ignored.

The default sort is specified by [sort] section in the configuration file.

$ procs --sortd cpu

procs_sort

Insert column

--insert option inserts new column to the position of Slot column. The column for insert is selected by the option keyword. The keyword is the same as sort option. A Slot column can be used by a inserted column. If many insertion is required, many Slot should be added. Unused Slot is not shown.

Shell completion

--completion option generates shell completion files under the current directory. The following shells are supported.

  • zsh
  • bash
  • fish
  • powershell
  • elvish

Configuration

You can change configuration by writing a configuration file. There are some configuration examples in config directory of this repository. config/large.toml is the default configuration before procs v0.9.21.

The location of the configuration file is OS-specific:

  • Linux: ~/.config/procs/config.toml
  • macOS: ~/Library/Preferences/com.github.dalance.procs/config.toml
  • Windows: ~/AppData/Roaming/dalance/procs/config.toml

For compatibility, if ~/.procs.toml exists, it will be preferred to the OS-specific locations.

The complete example of a configuration file can be generated by --config option.

[[columns]]
kind = "Pid"
style = "BrightYellow|Yellow"
numeric_search = true
nonnumeric_search = false

[[columns]]
kind = "Username"
style = "BrightGreen|Green"
numeric_search = false
nonnumeric_search = true
align = "Right"

[style]
header = "BrightWhite|Black"
unit = "BrightWhite|Black"
tree = "BrightWhite|Black"

[style.by_percentage]
color_000 = "BrightBlue|Blue"
color_025 = "BrightGreen|Green"
color_050 = "BrightYellow|Yellow"
color_075 = "BrightRed|Red"
color_100 = "BrightRed|Red"

[style.by_state]
color_d = "BrightRed|Red"
color_r = "BrightGreen|Green"
color_s = "BrightBlue|Blue"
color_t = "BrightCyan|Cyan"
color_z = "BrightMagenta|Magenta"
color_x = "BrightMagenta|Magenta"
color_k = "BrightYellow|Yellow"
color_w = "BrightYellow|Yellow"
color_p = "BrightYellow|Yellow"

[style.by_unit]
color_k = "BrightBlue|Blue"
color_m = "BrightGreen|Green"
color_g = "BrightYellow|Yellow"
color_t = "BrightRed|Red"
color_p = "BrightRed|Red"
color_x = "BrightBlue|Blue"

[search]
numeric_search = "Exact"
nonnumeric_search = "Partial"
logic = "And"

[display]
show_self = false
show_thread = false
show_thread_in_tree = true
cut_to_terminal = true
cut_to_pager = false
cut_to_pipe = false
color_mode = "Auto"

[sort]
column = 0
order = "Ascending"

[docker]
path = "unix:///var/run/docker.sock"

[pager]
mode = "Auto"

[[columns]] section

[[columns]] section defines which columns are used. The first [[columns]] is shown at left side, and the last is shown at right side.

Key Value Default Description
kind See kind list Column type
style See style list Column style
numeric_search true, false false Whether the column can be matched with numeric keywords
nonnumeric_search true, false false Whether the column can be matched with non-numeric keywords
align Left, Right, Center Left Text alignment
max_width [Number] Maximum column width
min_width [Number] Minimum column width
header [String] Alternate header description

kind list

procs kind ps STANDARD FORMAT Description Linux macOS Windows
Command args Command with all arguments o o o
ContextSw -not supported- Context switch count o o
CpuTime cputime Cumulative CPU time o o o
Docker -not supported- Docker container name o o
Eip eip Instruction pointer o
Esp esp Stack pointer o
Gid egid Group ID o o o
GidFs fgid File system group ID o
GidReal rgid Real group ID o o
GidSaved sgid Saved group ID o o
Group egroup Group name o o o
GroupFs fgroup File system group name o
GroupReal rgroup Real group name o o
GroupSaved sgroup Saved group name o o
MajFlt maj_flt Major page fault count o o o
MinFlt min_flt Minor page fault count o o
Nice ni Nice value o o
Pid pid Process ID ( or Thread ID sorrunded by [] ) o o o
Policy policy Scheduling policy o o
Ppid ppid Parent process ID o o o
Priority pri Priority o o o
Processor psr Currently assigned processor o
ReadBytes -not supported- Read bytes from storage o o o
RtPriority rtprio Real-time priority o
Separator -not supported- Show | for column separation o o o
ShdPnd pending Pending signal mask for process o
Slot -not supported- Slot for --insert option o o o
SigBlk blocked Blocked signal mask o
SigCgt caught Caught signal mask o
SigIgn ignored Ignored signal mask o
SigPnd pending Pending signal mask for thread o
Ssb -not supported- Speculative store bypass status o
StartTime start_time Starting time o o o
State s Process state o o
TcpPort -not supported- Bound TCP ports o o
Threads nlwp Thread count o o
Tty tty Controlling TTY o o
UdpPort -not supported- Bound UDP ports o o
Uid euid User ID o o o
UidFs fuid File system user ID o
UidLogin -not supported- Login user ID o
UidReal ruid Real user ID o o
UidSaved suid Saved user ID o o
UsageCpu %cpu CPU utilization o o o
UsageMem %mem Memory utilization o o o
User euser User name o o o
UserFs fuser File system user name o
UserLogin -not supported- Login user name o
UserReal ruser Real user name o o
UserSaved suser Saved user name o o
VmData -not supported- Data size o
VmExe trs Text segments size o
VmHwm -not supported- Peak resident set size o o
VmLib -not supported- Library code size o
VmLock -not supported- Locked memory size o
VmPeak -not supported- Peak virtual memory size o o
VmPin -not supported- Pinned memory size o o
VmPte -not supported- Page table entries size o
VmRss rss Resident set size o o o
VmSize vsz Physical page size o o o
VmStack -not supported- Stack size o
VmSwap -not supported- Swapped-out virtual memory size o o
Wchan wchan Process sleeping kernel function o
WriteByte -not supported- Write bytes to storage o o o

style list

  • BrightBlack
  • BrightRed
  • BrightGreen
  • BrightYellow
  • BrightBlue
  • BrightMagenta
  • BrightCyan
  • BrightWhite
  • Black
  • Red
  • Green
  • Yellow
  • Blue
  • Magenta
  • Cyan
  • White
  • Color256
  • ByPercentage
  • ByState
  • ByUnit

There are some special styles like ByPercentage, ByState, ByUnit. These are the styles for value-aware coloring. For example, if ByUnit is chosen, color can be specified for each unit of value ( like K, M, G,,, ). The colors can be configured in [style.by_unit] section.

Other colors can be configured as the same as color.

[style] section

[style] section defines colors of header, unit and each styles. The available list of color is below.

Subsection Key Value Default Description
header See color list BrightWhite|Black Header color
unit See color list BrightWhite|Black Unit color
tree See color list BrightWhite|Black Tree color
by_percentage color_000 See color list BrightBlue|Blue Color at 0% - 25%
by_percentage color_025 See color list BrightGreen|Green Color at 25% - 50%
by_percentage color_050 See color list BrightYellow|Yellow Color at 50% - 75%
by_percentage color_075 See color list BrightRed|Red Color at 75% - 100%
by_percentage color_100 See color list BrightRed|Red Color at 100% -
by_state color_d See color list BrightRed|Red Color at D state
by_state color_r See color list BrightGreen|Green Color at R state
by_state color_s See color list BrightBlue|Blue Color at S state
by_state color_t See color list BrightCyan|Cyan Color at T state
by_state color_z See color list BrightMagenta|Magenta Color at Z state
by_state color_x See color list BrightMagenta|Magenta Color at X state
by_state color_k See color list BrightYellow|Yellow Color at K state
by_state color_w See color list BrightYellow|Yellow Color at W state
by_state color_p See color list BrightYellow|Yellow Color at P state
by_unit color_k See color list BrightBlue|Blue Color at unit K
by_unit color_m See color list BrightGreen|Green Color at unit M
by_unit color_g See color list BrightYellow|Yellow Color at unit G
by_unit color_t See color list BrightRed|Red Color at unit T
by_unit color_p See color list BrightRed|Red Color at unit P
by_unit color_x See color list BrightBlue|Blue Color at other unit

color list

  • BrightBlack
  • BrightRed
  • BrightGreen
  • BrightYellow
  • BrightBlue
  • BrightMagenta
  • BrightCyan
  • BrightWhite
  • Black
  • Red
  • Green
  • Yellow
  • Blue
  • Magenta
  • Cyan
  • White
  • Color256

Colors can be configured by theme through |.

style = "BrightWhite|Black" # BrightWhite for dark theme and Black for light theme
style = "BrightWhite"       # BrightWhite for both theme

The first color is for dark theme, and the second is for light theme. If only a color is specified, the color is applied to both theme.

Color256 can be specified by 0-255 value like below:

style = "223|112" # 223 for dark theme and 112 for light theme
style = "223"     # 223 for both theme

[search] section

[search] section defines option for Keyword search.

Key Value Default Description
numeric_search Exact, Partial Exact Whether numeric keywords match exactly or partially
nonnumeric_search Exact, Partial Partial Whether non-numeric keywords match exactly or partially
logic And, Or, Nand, Nor And Logical operation between keywords

[display] section

[display] section defines option for output display.

Key Value Default Description
show_self true, false false Whether the self process ( procs ) is shown
show_thread true, false false Whether the thread information is shown ( Linux only )
show_thread_in_tree true, false true Whether the thread information is shown in tree mode ( Linux only )
cut_to_terminal true, false true Whether output lines are truncated for output into terminal
cut_to_pager true, false false Whether output lines are truncated for output into pager
cut_to_pipe true, false false Whether output lines are truncated for output into pipe
color_mode Auto, Always, Disable Auto The default behavior of output coloring without --color commandline option
separator [String] String used as Separator
ascending [String] Ascending sort indicator
descending [String] Descending sort indicator
tree_symbols [String; 5] [│, ─, ┬, ├, └] Symbols used by tree view
abbr_sid true, false true Whether machine SID is abbreviated ( Windows only )

If color_mode is Auto, color is enabled for terminal and pager, disabled for pipe.

abbr_sid

Windows SID is too long, so it is abbreviated by default. If abbr_sid is false, SID is fully shown like below:

S-1-5-21-789457439-2186958450-1652286173-1001

If abbr_sid is true, SID is shown like below:

S-1-5-21-...-1001

[sort] section

[sort] section defines the column used for sort and sort order.

Key Value Default Description
column [Number] 0 Column number to used for sort
order Ascending, Descending Ascending Sort order

If column is 0, value is sorted by the left column.

[docker] section

[docker] section defines how to communicate to docker daemon.

Key Value Default Description
path [Path] unix:///var/run/docker.sock UNIX domain socket to docker daemon

[pager] section

[pager] section defines the behavior of pager.

Key Value Default Description
mode Auto, Always, Disable Auto The default behavior of pager usage without --pager commandline option
detect_width true, false false Whether auto mode detects terminal width overflow
command [Command] less -SR Pager command

If mode is Auto, pager is used only when output lines exceed terminal height. Default pager is less -SR ( if less is not found, more -f ).

Comments
  • invalid charset name

    invalid charset name

    FAIL:

    ~
    ❯ procs
    invalid charset name
    

    SUCCESS:

    ~
    ❯ echo $LANG                                                                                   
    zh_CN.UTF-8
                                                                                                                   
    ~
    ❯ LANG=en_US.UTF-8 procs                                    
    
    opened by M4n5ter 30
  • Hang in VSCode's integrated terminal

    Hang in VSCode's integrated terminal

    procs will hang if running in VSCode's integrated terminal, which is powered by xterm.js:

    $ procs --debug 
    Info: View::new [0.134s]
    Info: view.filter [0.000s]
    Info: view.adjust [0.000s]
    
    (Hang)
    

    I haven't test other programs that use xterm.js, but given that I don't have such issue with other programs, I guess procs is to blame.

    opened by kidonng 24
  • Escaped characters(?) in output for PID and CPU.

    Escaped characters(?) in output for PID and CPU.

    image

    I'm getting odd escaped characters or something in my output for PID and CPU columns. Unsure where to start to troubleshoot this.

    bdmorin@phester:~$ locale
    LANG=en_US.UTF-8
    LANGUAGE=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=en_US.UTF-8
    
    opened by bdmorin 18
  • Reconsider dependencies

    Reconsider dependencies

    unbytify is not really maintained, would be nice to replace it with something else.

    And if you could make the dockworker the optional component, would be very nice.

    opened by ignatenkobrain 16
  • Tree view doesn't work on macOS when run as root

    Tree view doesn't work on macOS when run as root

    Running procs -t works as expected as a regular user, but running sudo procs -t running procs -t with the setuid bit set results in no processes being listed:

    REDACTED:~ elyscape$ sudo procs -t
      PID User │ State Nice TTY CPU MEM  VmSize   VmRSS TCP UDP  Read Write │ CPU Time Start Docker │ Command
               │                [%] [%] [bytes] [bytes]         [B/s] [B/s] │                       │
    
    opened by elyscape 13
  • build for Android failed

    build for Android failed

    15

    I find this project need getch crate, getch crate need termios crate, termios crate version is too old. how to update termios crate version to latest? I am not familiar with Rust. Thank you for your help.

    opened by leleliu008 12
  • procs display issue

    procs display issue

    When running procs on my Mac Catalina, the display seems to be separated by many lines

    Screen Shot 2020-11-24 at 3 03 56 PM

    Any idea what's going on? If I do

    procs | cat

    then the spacing appears to be normal. Also, if I just run procs --watch then the spacing is also fine

    Screen Shot 2020-11-24 at 3 08 53 PM

    Thanks, Zach

    opened by zlscherr 12
  • Default config should use foreground color instead of white

    Default config should use foreground color instead of white

    Hello,

    I tried procs. But got a bad first time experience due to the default config that uses BrightWhite instead of Foreground color.

    Here is a capture: Capture d’écran 2020-10-28 à 18 22 24

    BrightWhite may be fancier for people with black background, but don't just work for others.

    Thank you

    opened by jxerome 10
  • Can't run 0.4.5

    Can't run 0.4.5

    Hello there, Thank you for this interesting program. Can't run 0.4.5 on Linux x86_64.

    $ RUST_BACKTRACE=1 ./procs 
    thread 'main' panicked at 'Failed to unwrap map.remove("Umask"). Please report this as a procfs bug.', /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.4.5/src/process.rs:1346:59
    stack backtrace:
       0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
                 at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
       1: std::sys_common::backtrace::_print
                 at src/libstd/sys_common/backtrace.rs:71
       2: std::panicking::default_hook::{{closure}}
                 at src/libstd/sys_common/backtrace.rs:59
                 at src/libstd/panicking.rs:211
       3: std::panicking::default_hook
                 at src/libstd/panicking.rs:227
       4: std::panicking::rust_panic_with_hook
                 at src/libstd/panicking.rs:491
       5: std::panicking::continue_panic_fmt
                 at src/libstd/panicking.rs:398
       6: std::panicking::begin_panic_fmt
                 at src/libstd/panicking.rs:353
       7: procfs::process::Status::from_reader
       8: procfs::process::Process::status
       9: procs::run_opt_config
      10: procs::main
      11: std::rt::lang_start::{{closure}}
      12: std::panicking::try::do_call
                 at src/libstd/rt.rs:59
                 at src/libstd/panicking.rs:310
      13: __rust_maybe_catch_panic
                 at src/libpanic_unwind/lib.rs:102
      14: std::rt::lang_start_internal
                 at src/libstd/panicking.rs:289
                 at src/libstd/panic.rs:398
                 at src/libstd/rt.rs:58
      15: main
    
    

    Running 0.4.4 OK, but there are odd empty between lines

     PID   User       | State Nice TTY   CPU MEM  VSZ      RSS      TCP    UDP Read  Write | CPU Time Start            | Command                                                                                                        
                                                                                                                                                                                                                                        
                                                                                         
                      |                  [%] [%]  [bytes]  [bytes]             [B/s] [B/s] |                           |                                                                                                                
                                                                                                                                                                                                                                        
                                                                                         
     1     root       | S     0          0.0 0.2  217.703M 9.344M                          | 00:00:05 2019/02/15 18:37 | /usr/lib/systemd/systemd --switched-root --system --deserialize 24                                             
                                                                                                                                                                                                                                        
                                                                                         
     2     root       | S     0          0.0 0.0  0        0                               | 00:00:00 2019/02/15 18:37 | kthreadd                                                                                                       
                                                                                                                                                                                                                                        
                                                                                         
     4     root       | S     -20        0.0 0.0  0        0                               | 00:00:00 2019/02/15 18:37 | kworker/0:0H                                                                                                   
     
    
    opened by garywill 10
  • Won't build on macOS

    Won't build on macOS

    error[E0433]: failed to resolve: could not find `linux` in `os`
     --> /Users/cdhagmann/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.4.5/src/process.rs:8:14
      |
    8 | use std::os::linux::fs::MetadataExt;
      |              ^^^^^ could not find `linux` in `os`
    
    error[E0599]: no method named `st_uid` found for type `std::fs::Metadata` in the current scope
        --> /Users/cdhagmann/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.4.5/src/process.rs:1525:23
         |
    1525 |             owner: md.st_uid(),
         |                       ^^^^^^
         |
         = help: items from traits can only be used if the trait is in scope
         = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
                 `use std::os::macos::fs::MetadataExt;`
    
    error[E0599]: no method named `st_uid` found for type `std::fs::Metadata` in the current scope
        --> /Users/cdhagmann/.cargo/registry/src/github.com-1ecc6299db9ec823/procfs-0.4.5/src/process.rs:1540:23
         |
    1540 |             owner: md.st_uid(),
         |                       ^^^^^^
         |
         = help: items from traits can only be used if the trait is in scope
         = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
                 `use std::os::macos::fs::MetadataExt;`
    
    error: aborting due to 3 previous errors
    
    Some errors occurred: E0433, E0599.
    For more information about an error, try `rustc --explain E0433`.
    error: Could not compile `procfs`.```
    opened by cdhagmann 8
  • Docker column is empty

    Docker column is empty

    I'm running procs as root, but the docker column is empty. My config:

    [[columns]]
    kind = "Docker"
    style = "BrightGreen|Green"
    numeric_search = false
    nonnumeric_search = true
    align = "Left"
    
    [docker]
    path = "unix:///var/run/docker.sock"
    

    I can access the docker socket using curl:

    curl --unix-socket /var/run/docker.sock http://localhost/containers/json
    
    opened by Saduff 7
  • Feature request - Add 'footer' option to be equal header

    Feature request - Add 'footer' option to be equal header

    This is for people like me who don't like to use pagers and sometimes create aliases that printf something after running a command/program, just to remember what each column corresponds to

    This way, I can view what each column is in the end of the list as well.

     PID:▲  User             │ State Nice TTY    CPU  MEM   VmSize    VmRSS TCP    UDP      Read Write │ CPU Time Start            │ Command
                             │                   [%]  [%]  [bytes]  [bytes]                [B/s] [B/s] │                           │
     1      root             │ S        0        0.0  0.0 166.105M  10.145M                            │ 00:00:02 2022/12/21 09:34 │ /sbin/init splash
     2      root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kthreadd
     3      root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcu_gp
     4      root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcu_par_gp
     5      root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ slub_flushwq
     6      root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ netns
     8      root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/0:0H-kblockd
     10     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ mm_percpu_wq
     12     root             │ I        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcu_tasks_kthread
     13     root             │ I        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcu_tasks_rude_kthread
     14     root             │ I        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcu_tasks_trace_kthread
     15     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/0
     16     root             │ I        0        0.0  0.0        0        0                            │ 00:00:05 2022/12/21 09:34 │ rcu_preempt
     17     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcub/1
     18     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/0
     19     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/0
     21     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/0
     22     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/1
     23     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/1
     24     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/1
     25     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/1
     27     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/1:0H-events_highpri
     28     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/2
     29     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/2
     30     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/2
     31     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/2
     33     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/2:0H-events_highpri
     34     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/3
     35     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/3
     36     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/3
     37     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/3
     38     root             │ I        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/3:0-mm_percpu_wq
     39     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/3:0H-events_highpri
     40     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/4
     41     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/4
     42     root             │ S        0        0.0  0.0        0        0                            │ 00:00:01 2022/12/21 09:34 │ migration/4
     43     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/4
     45     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/4:0H-events_highpri
     46     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/5
     47     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/5
     48     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/5
     49     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/5
     51     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/5:0H-events_highpri
     52     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/6
     53     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/6
     54     root             │ S        0        0.0  0.0        0        0                            │ 00:00:01 2022/12/21 09:34 │ migration/6
     55     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/6
     57     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/6:0H-events_highpri
     58     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/7
     59     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/7
     60     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/7
     61     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/7
     63     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/7:0H-events_highpri
     64     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/8
     65     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/8
     66     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/8
     67     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/8
     69     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/8:0H-events_highpri
     70     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/9
     71     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/9
     72     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/9
     73     root             │ S        0        0.0  0.0        0        0                            │ 00:00:05 2022/12/21 09:34 │ ksoftirqd/9
     75     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/9:0H-events_highpri
     76     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/10
     77     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/10
     78     root             │ S        0        0.0  0.0        0        0                            │ 00:00:01 2022/12/21 09:34 │ migration/10
     79     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/10
     81     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/10:0H-events_highpri
     82     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ rcub/2
     83     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/11
     84     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/11
     85     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/11
     86     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/11
     88     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/11:0H-events_highpri
     89     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/12
     90     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/12
     91     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/12
     92     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/12
     94     root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/12:0H-events_highpri
     95     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/13
     96     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/13
     97     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/13
     98     root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/13
     100    root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/13:0H-events_highpri
     101    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/14
     102    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/14
     103    root             │ S        0        0.0  0.0        0        0                            │ 00:00:01 2022/12/21 09:34 │ migration/14
     104    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/14
     106    root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/14:0H-events_highpri
     107    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/15
     108    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/15
     109    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ migration/15
     110    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/15
     111    root             │ I        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/15:0-mm_percpu_wq
     112    root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/15:0H-events_highpri
     113    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/16
     114    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/16
     115    root             │ S        0        0.0  0.0        0        0                            │ 00:00:04 2022/12/21 09:34 │ migration/16
     116    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ ksoftirqd/16
     118    root             │ I      -20        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ kworker/16:0H-events_highpri
     119    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ cpuhp/17
     120    root             │ S        0        0.0  0.0        0        0                            │ 00:00:00 2022/12/21 09:34 │ idle_inject/17
     121    root             │ S        0        0.0  0.0        0        0                            │ 00:00:03 2022/12/21 09:34 │ migration/17
                             │                   [%]  [%]  [bytes]  [bytes]                [B/s] [B/s] │                           │
     PID:▲  User             │ State Nice TTY    CPU  MEM   VmSize    VmRSS TCP    UDP      Read Write │ CPU Time Start            │ Command
                             │                   [%]  [%]  [bytes]  [bytes]                [B/s] [B/s] │                           │
    
    opened by murder 0
  • adding sort column to inserts (closes #227)

    adding sort column to inserts (closes #227)

    This closes #227.

    2 things:

    • by default the sort column is pushed to the end of the inserts. Not sure if this is the best way to do it?
    • since the insert names don't have to be exact. There would be situations like procs --insert rss --sorta VmRss that would create duplicate columns. Not sure if this is a concern in practice?
    opened by sou-chon 0
  • procs does't show tcp port in Ubuntu 22.04 LTS

    procs does't show tcp port in Ubuntu 22.04 LTS

    hello, I download binary release file , version is 0.13.1. copy file to /usr/local/bin to install, and no tcp port column when i start procs, procs 8080 print nothing even i have a process listen to 8080 meanwhile. procs --insert TCP will display tcp port. i want to show it default.

    opened by FinallyFinancialFreedom 1
  • Hangs when running inside tmux unless pager is disabled

    Hangs when running inside tmux unless pager is disabled

    procs hangs when trying to run it in tmux. It works when running it with --pager disable, or when running it directly in the terminal outside of tmux session.

    OS: macOS 12.5 (arm64) Terminal: iTerm2 3.4.16 + tmux 3.3a

    Related: https://github.com/dalance/procs/issues/142, https://github.com/dalance/procs/issues/288

    opened by aqrln 2
Releases(v0.13.3)
Owner
null
🍂 A Rust-based simulated DOM (browser-independent replacement for web_sys)

DOM in Rust without a browser Hello and welcome. This library provides server-side or browserless simulation of a DOM. Example Usage use std::sync::Ar

Philip Peterson 45 Dec 13, 2022
A modern alternative to watch command

A modern alternative to watch command

Tavo Annus 7 Oct 7, 2022
Blazing 💥 fast terminal-ui for git written in rust 🦀

Blazing fast terminal client for git written in Rust Features Fast and intuitive keyboard only control Context based help (no need to memorize tons of

Stephan Dilly 11.8k Jan 5, 2023
A simple and fast download accelerator, written in Rust

zou A simple and fast download accelerator, written in Rust Zou is a Snatch fork by @k0pernicus. Snatch is a fast and interruptable download accelerat

Antonin Carette 173 Dec 4, 2022
A bash-like Unix shell written in Rust

Cicada Unix Shell Cicada is a simple Unix shell written in Rust. Documents Install cicada Environment Variables Cicada Builtins Completion RC File His

Hugo Wang 921 Dec 28, 2022
Performs distributed command execution, written in Rust w/ Tokio

Concurr: Distributed and Concurrent Command Execution, in Rust This project is dual licensed under MIT and Apache 2.0. Originally inspired by the GNU

Michael Murphy 93 Dec 18, 2022
A TUI system monitor written in Rust

NO LONGER MAINTAINED. For a similar program, check out https://github.com/ClementTsang/bottom. ytop Another TUI based system monitor, this time in Rus

Caleb Bassi 2.1k Jan 3, 2023
A non-root version of traceroute written in Rust

tracepath-rs A non-root version of traceroute written in Rust for Linux.

Peter Malmgren 9 Dec 30, 2022
Dancing Links (“dlx”) solver for the exact cover problem, written in Rust. Can be used to create a sudoku solver.

Dancing Links “dlx” Dancing Links solver for “algorithm X” by Knuth This solver solves the exact cover problem using “algorithm X”, implemented using

bluss 4 Nov 19, 2022
A system handler to get information and interact with processes written in Rust

A system handler to get information and interact with processes written in Rust

Guillaume Gomez 1.1k Jan 3, 2023
LeftHK - A hotkey daemon written in Rust

LeftHK LeftHK - A hotkey daemon written in Rust THIS IS BETA SOFTWARE The configuration file should be created in ~/.config/lefthk/ and called config.

null 15 Oct 12, 2022
minimalistic command launcher in rust

rrun Note: Apart from the occasional fix, this project is not actively developed anymore. rrun works fine and should run/compile for the time being on

null 105 Nov 18, 2022
Yet another fancy watcher. (Rust)

funzzy Yet another fancy watcher. (Inspired by antr / entr) Configure execution of different commands using semantic yaml. # .watch.yaml # list here a

Cristian Oliveira 188 Dec 12, 2022
A more intuitive version of du in rust

Dust du + rust = dust. Like du but more intuitive. Why Because I want an easy way to see where my disk is being used. Demo Install Cargo cargo install

andy.boot 5.5k Jan 8, 2023
Fuzzy Finder in rust!

Life is short, skim! Half of our life is spent on navigation: files, lines, commands… You need skim! It is a general fuzzy finder that saves you time.

Jinzhou Zhang 3.7k Jan 4, 2023
A library to listen to global hotkeys in Rust

Rust Hotkey A library to listen to global hotkeys in Rust How to use See the examples folder for how to use this library. OS Support This lib aims to

James Birtles 44 Dec 12, 2022
🔮 Futuristic take on hexdump, made in Rust.

hex (hx) Futuristic take on hexdump. hx accepts a file path as input and outputs a hexadecimal colorized view to stdout. $ hx tests/files/alphanumeric

Julian Sitkevich 387 Dec 27, 2022
Cross-platform Rust rewrite of the GNU coreutils

uutils coreutils uutils is an attempt at writing universal (as in cross-platform) CLI utilities in Rust. This repository is intended to aggregate GNU

null 13k Dec 30, 2022
A rust layered configuration loader with zero-boilerplate configuration management.

salak A layered configuration loader with zero-boilerplate configuration management. About Features Placeholder Key Convension Cargo Features Default

Daniel YU 28 Sep 20, 2022