Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux chmod

permission = read(4) + write(2) + execute(1)

===== CHMOD ===== ( change permission for file )
chmod [permissions] file
(u)ser, (g)roup, (o)ther, (a)ll
(r)ead, (w)rite, (e)xecute
(+) add permission, (-) remove permission, (=) set permission

#Examples:
chmod o+rwx file # add rwx for other
chmod o=rw file  # set rw for other
chmod og-x file  # remove x from other and group
chmod a+r file   # everyone can read

# Numeric
chmod 724 file # owner=everything, group=writing, other=reading
                                            
first number is for owner of file, 
second for group of owner,
third for everyone

===== OTHER =====
ls -l [path]

---------- # file
d--------- # directory

-rwx------ # owner
----rwx--- # group
-------rwx # other
Comment

PREVIOUS NEXT
Code Example
Shell :: bash count elements in string 
Shell :: trailing whitespace git apply 
Shell :: How to Change Your MySQL/phpmyadmin Password in XAMPP 
Shell :: bash regex match 
Shell :: Creating a new Laravel application 
Shell :: docker remove dangling images 
Shell :: pip install algolia 
Shell :: how to fast forward git 
Shell :: run sh with parameter 
Shell :: sed replace number 
Shell :: remove white space from stering in bash 
Shell :: conda install pandas 
Shell :: git commit single file 
Shell :: applescript copy to clipboard 
Shell :: yarn version in mac 
Shell :: how to install apt 
Shell :: nvm cheatsheet 
Shell :: amend specific commit 
Shell :: How to create or generate secret key for django 
Shell :: tempfile.temporarydirectory() 
Shell :: lumen with specific version 
Shell :: clipboard manager linux unity 
Shell :: how to install kubectl in ubuntu 
Shell :: how to install redis 
Shell :: how to create permanent alias in linux 
Shell :: bash loading bar spinner in bash shell script 
Shell :: how to view current ssh git 
Shell :: install talib on server 
Shell :: view permissions linux 
Shell :: journalctl vacuum 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =