Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to set umask in linux

umask # shows current octal permissions mode
umask -S # human readable notation
u=rwx, g=rx, o=rx
umask 002 # set new octal permission mode
 	  ugo
# 	 0 -> read, write and execute
#    1 -> read and write
#    2 -> read and execute
#    3 -> only read
#    4 -> write and execute
#    5 -> only write
#    6 -> only execute
# 	 7 -> no permissions
umask g+r # set global rol to read
Comment

how to set umask in bashrs in linux

cd
umask 0027 >> .bashrc
Comment

PREVIOUS NEXT
Code Example
Shell :: bash get unique lines 
Shell :: repo from bitbucket to github 
Shell :: remove empty pdf page 
Shell :: create ssh key 
Shell :: Android get abi version 
Shell :: install maven ubuntu 20.04 
Shell :: wget a file from bitbucket 
Shell :: particular screenshot in ubuntu 
Shell :: github download 
Shell :: How to install vscode on centos 8 
Shell :: vim yank line 
Shell :: download fbreader for ubuntu 
Shell :: gtest filter command line 
Shell :: update powershell 
Shell :: pull remote branch git 
Shell :: better wget 
Shell :: hsdpa modem software for linux 
Shell :: check logstash config 
Shell :: how to upgrade gradle version in linux 
Shell :: install owlready2 
Shell :: git push commands 
Shell :: fortigate show system version 
Shell :: install wordpress in windows 10 
Shell :: verbose stack Error: bcrypt@1.0.3 install: `node-pre-gyp install --fallback-to-build` 
Shell :: Missing essential plugins: com.android.tools.design org.jetbrains.android 
Shell :: get tag list of image from hub using cli 
Shell :: kubectl expose 
Shell :: unporotected ssh key aws 
Shell :: read lines shell script 
Shell :: grep last instance 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =