Thanks to visit codestin.com
Credit goes to github.com

Skip to content

wowzerwize/ps-clone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ps-clone

A clone of unix ps program - reports a snapshot of the current processes; including: Pid user state and memory consumption

   PID	NAME           	USER      	STATE     	MEMORY    
------	---------------	----------	----------	----------
     1	systemd        	root      	S (sleeping)	 4316 kB
     2	kthreadd       	root      	S (sleeping)	
     ...

Install

bundle install

Run

Executable is bin/ps.rb

Proc Filesystem

All processes are read from Linux /proc folder. Every Pid subfolder contains data for each running process, general data can be found in file /proc/<pid>/status

About

A clone of unix ps program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%