MacOS: sw_vers
							parent
							
								
									7b85fba0bd
								
							
						
					
					
						commit
						fd559e2de4
					
				| 
						 | 
				
			
			@ -499,6 +499,8 @@ These are items relevant *only* on MacOS.
 | 
			
		|||
 | 
			
		||||
- Be aware MacOS is based on BSD Unix, and many commands (for example `ps`, `ls`, `tail`, `awk`, `sed`) have many subtle variations from Linux, which is largely influenced by System V-style Unix and GNU tools. You can often tell the difference by noting a man page has the heading "BSD General Commands Manual." In some cases GNU versions can be installed, too (such as `gawk` and `gsed` for GNU awk and sed). If writing cross-platform Bash scripts, avoid such commands (for example, consider Python or `perl`) or test carefully.
 | 
			
		||||
 | 
			
		||||
- To get MacOS release information, use `sw_vers`.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## More resources
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue