Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change file permission linux

chmod +x <fileName> # add execute permission to that file (.x.x.x) 
chmod +r <fileName> # add read permission to a file
chmod +w <fileName> # add write permission to the file

chmod u+x <fileName> #add execute permission to owner of the file

chmod 400 <fileName> # set file only read permission to owner 
#chmod-calculator.com
 
PREVIOUS NEXT
Tagged: #change #file #permission #linux
ADD COMMENT
Topic
Name
4+8 =