mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +00:00 
			
		
		
		
	 b863332415
			
		
	
	
		b863332415
		
	
	
	
	
		
			
			This option allows the user to specify a number of seconds. Only processes older than the given number of seconds are selected.
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| pgrep - look up processes based on name
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```sh
 | |
| $ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--newest] [--oldest] [--older seconds] [--uid uid-list] [--invert-match] [--exact] <process-name>
 | |
| ```
 | |
| 
 | |
| ## Options
 | |
| 
 | |
| * `-c`, `--count`: Suppress normal output and print the number of matching processes
 | |
| * `-d`, `--delimiter`: Set the string used to delimit multiple pids
 | |
| * `-i`, `--ignore-case`: Make matches case-insensitive
 | |
| * `-l`, `--list-name`: List the process name in addition to its pid
 | |
| * `-n`, `--newest`: Select the most recently created process only
 | |
| * `-o`, `--oldest`: Select the least recently created process only
 | |
| * `-O`, `--older`: Select only processes older than the specified number of seconds
 | |
| * `-U uid-list`, `--uid uid-list`: Select only processes whose UID is in the given comma-separated list. Login name or numerical user ID may be used
 | |
| * `-x`, `--exact`: Select only processes whose names match the given pattern exactly
 | |
| * `-v`, `--invert-match`: Select non-matching lines
 | |
| 
 | |
| ## Arguments
 | |
| 
 | |
| * `process-name`: Process name to search for
 |