mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:42:43 +00:00 
			
		
		
		
	Base: Add manpage for file(1)
This commit is contained in:
		
							parent
							
								
									336a79a452
								
							
						
					
					
						commit
						09ea57031f
					
				
					 1 changed files with 35 additions and 0 deletions
				
			
		
							
								
								
									
										35
									
								
								Base/usr/share/man/man1/file.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								Base/usr/share/man/man1/file.md
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| ## Name | ||||
| 
 | ||||
| file - determine type of files | ||||
| 
 | ||||
| ## Synopsis | ||||
| 
 | ||||
| ```**sh | ||||
| $ file [options...] [files...] | ||||
| ``` | ||||
| 
 | ||||
| ## Description | ||||
| 
 | ||||
| `file` attempts to identify the type of files. | ||||
| 
 | ||||
| First, an attempt is made to identify a given file based on predetermined binary patterns. If this fails, `file` will fall back to determining the type based on the filename. | ||||
| 
 | ||||
| ## Options | ||||
| 
 | ||||
| * `--help`: Display this message | ||||
| * `-I`, `--mime-type`: Only show mime type. | ||||
| 
 | ||||
| ## Arguments | ||||
| 
 | ||||
| * `files`: Files to identify | ||||
| 
 | ||||
| ## Examples | ||||
| 
 | ||||
| ```sh | ||||
| # Identify a file | ||||
| $ file Buggie.png | ||||
| Buggie.png: PNG image data, 64 x 138 | ||||
| # Identify all files in the current directory, and show only the mime type. | ||||
| $ file -I * | ||||
| ``` | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Valtteri Koskivuori
						Valtteri Koskivuori