mirror of
				https://github.com/onceupon/Bash-Oneliner.git
				synced 2025-11-03 22:51:07 +01:00 
			
		
		
		
	add some common environment variables
This commit is contained in:
		
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							@@ -115,6 +115,15 @@ $?   :most recent foreground pipeline exit status.
 | 
				
			|||||||
$-   :current options set for the shell.  
 | 
					$-   :current options set for the shell.  
 | 
				
			||||||
$$   :pid of the current shell (not subshell).  
 | 
					$$   :pid of the current shell (not subshell).  
 | 
				
			||||||
$!   :is the PID of the most recent background command.  
 | 
					$!   :is the PID of the most recent background command.  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$DESKTOP_SESSION     current display manager
 | 
				
			||||||
 | 
					$EDITOR   preferred text editor.
 | 
				
			||||||
 | 
					$LANG   current language.
 | 
				
			||||||
 | 
					$PATH   list of directories to search for executable files (i.e. ready-to-run programs)
 | 
				
			||||||
 | 
					$PWD    current directory
 | 
				
			||||||
 | 
					$SHELL  current shell   
 | 
				
			||||||
 | 
					$USER   current username
 | 
				
			||||||
 | 
					$HOSTNAME   current hostname
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Grep
 | 
					## Grep
 | 
				
			||||||
@@ -1427,7 +1436,7 @@ shopt -s expand_aliases
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
##### List environment variables (e.g. PATH) 
 | 
					##### List environment variables (e.g. PATH) 
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
$echo $PATH
 | 
					echo $PATH
 | 
				
			||||||
# list of directories separated by a colon
 | 
					# list of directories separated by a colon
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
##### List all environment variables for current user
 | 
					##### List all environment variables for current user
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user