mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:02:44 +00:00 
			
		
		
		
	 7e98457937
			
		
	
	
		7e98457937
		
	
	
	
	
		
			
			On macOS with a Finnish keyboard layout, $ is typed with Option+4. While writing this manpage, I made the mistake of holding Option down a little too long, as I often do, resulting in the keystroke Option+space. This, instead of typing a space, types U+00A0 (non-breaking space), which looks identical on my host terminal. Luckily the Serenity terminal called me out on it, printing out a question mark instead.
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			657 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			657 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## 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 *
 | |
| ```
 | |
| 
 |