mirror of
				https://github.com/ohmybash/oh-my-bash.git
				synced 2024-05-11 05:55:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			800 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			800 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#! bash oh-my-bash.module
 | 
						|
#  ---------------------------------------------------------------------------
 | 
						|
 | 
						|
alias perm='stat --printf "%a %n \n "'      # perm: Show permission of target in number
 | 
						|
alias 000='chmod 000'                       # ---------- (nobody)
 | 
						|
alias 640='chmod 640'                       # -rw-r----- (user: rw, group: r, other: -)
 | 
						|
alias 644='chmod 644'                       # -rw-r--r-- (user: rw, group: r, other: -)
 | 
						|
alias 755='chmod 755'                       # -rwxr-xr-x (user: rwx, group: rx, other: x)
 | 
						|
alias 775='chmod 775'                       # -rwxrwxr-x (user: rwx, group: rwx, other: rx)
 | 
						|
alias mx='chmod a+x'                        # ---x--x--x (user: --x, group: --x, other: --x)
 | 
						|
alias ux='chmod u+x'                        # ---x------ (user: --x, group: -, other: -)
 |