mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	Base: Add mktemp(1) man page
This commit is contained in:
		
							parent
							
								
									c940fd6b7d
								
							
						
					
					
						commit
						2dea887e8f
					
				
					 1 changed files with 34 additions and 0 deletions
				
			
		
							
								
								
									
										34
									
								
								Base/usr/share/man/man1/mktemp.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Base/usr/share/man/man1/mktemp.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| ## Name | ||||
| 
 | ||||
| mktemp - create a temporary file or directory | ||||
| 
 | ||||
| ## Synopsis | ||||
| 
 | ||||
| ```**sh | ||||
| $ mktemp [--directory] [--dry-run] [--quiet] [--tmpdir DIR] [template] | ||||
| ``` | ||||
| 
 | ||||
| ## Description | ||||
| 
 | ||||
| `mktemp` creates temporary a file or directory safely, and then prints its name. | ||||
| 
 | ||||
| A template may be specified and will be used instead of the default tmp.XXXXXXXXXX | ||||
| as long as it contains at least 3 consecutive 'X's. | ||||
| 
 | ||||
| ## Options | ||||
| 
 | ||||
| * `-d`, `--directory`: Create a temporary directory instead of a file | ||||
| * `-u`, `--dry-run`: Do not create anything, just print a unique name | ||||
| * `-q`, `--quiet`: Do not print diagnostics about file/directory creation failure | ||||
| * `-p`, `--tmpdir`: Create temporary files relative to this directory | ||||
| 
 | ||||
| ## Examples | ||||
| 
 | ||||
| ```sh | ||||
| # Create a temporary file | ||||
| $ mktemp | ||||
| # Find an available temporary file name | ||||
| $ mktemp -u | ||||
| # Create a temporary directory with a custom template | ||||
| $ mktemp -d serenity.XXXXX | ||||
| ``` | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz