Skip to content

List processes

ps()
Process table
ps_apps()
List currently running applications
ps_pids()
Ids of all processes on the system

Process query API

ps_children()
List of child processes (process objects) of the process. Note that this typically requires enumerating all processes on the system, so it is a costly operation.
ps_cmdline()
Command line of the process
ps_cpu_times()
CPU times of the process
ps_create_time()
Start time of a process
ps_cwd()
Process current working directory as an absolute path.
ps_descent()
Query the ancestry of a process
ps_environ() ps_environ_raw()
Environment variables of a process
ps_exe()
Full path of the executable of a process
ps_handle() as.character(<ps_handle>) format(<ps_handle>) print(<ps_handle>)
Create a process handle
ps_is_running()
Checks whether a process is running
ps_memory_info() ps_memory_full_info()
Memory usage information
ps_name()
Process name
ps_num_threads()
Number of threads
ps_pid()
Pid of a process handle
ps_ppid() ps_parent()
Parent pid or parent process of a process
ps_shared_libs()
List the dynamically loaded libraries of a process
ps_status()
Current process status
ps_terminal()
Terminal device of the process
ps_uids() ps_gids()
User ids and group ids of the process
ps_username()
Owner of the process

Files and Network Connections

ps_connections()
List network connections of a process
ps_num_fds()
Number of open file descriptors
ps_open_files()
Open files of a process

Process manipulation

ps_interrupt()
Interrupt a process
ps_kill()
Kill one or more processes
ps_resume()
Resume (continue) a stopped process
ps_send_signal()
Send signal to a process
ps_suspend()
Suspend (stop) the process
ps_terminate()
Terminate a Unix process
ps_get_cpu_affinity() ps_set_cpu_affinity()
Query or set CPU affinity
ps_windows_nice_values() ps_get_nice() ps_set_nice()
Get or set the priority of a process
ps_wait()
Wait for one or more processes to terminate, with a timeout

Users

ps_users()
List users connected to the system

Disks and files

ps_disk_partitions()
List all mounted partitions
ps_disk_usage()
Disk usage statistics, per partition
ps_disk_io_counters()
System-wide disk I/O counters
ps_fs_info()
File system information for files
ps_fs_mount_point()
Find the mount point of a file or directory
ps_fs_stat()
File status

Other system information

ps_boot_time()
Boot time of the system
ps_os_type() ps_is_supported()
Query the type of the OS
ps_cpu_count()
Number of logical or physical CPUs
ps_tty_size()
Query the size of the current terminal
ps_loadavg()
Return the average system load over the last 1, 5 and 15 minutes as a tuple.
ps_shared_lib_users()
List all processes that loaded a shared library
ps_system_cpu_times()
System CPU times.
ps_system_memory()
Statistics about system memory usage
ps_system_swap()
System swap memory statistics

Process tree cleanup

ps_mark_tree() with_process_cleanup() ps_find_tree() ps_kill_tree()
Mark a process and its (future) child tree
CleanupReporter()
testthat reporter that checks if child processes are cleaned up in tests

Utility functions

ps_os_type() ps_is_supported()
Query the type of the OS
signals()
List of all supported signals
errno()
List of 'errno' error codes