Skip to content

Instantly share code, notes, and snippets.

@mpfaff
Created March 3, 2019 23:46
Show Gist options
  • Save mpfaff/84a6b830773375aa4a9381bfc5fea3ab to your computer and use it in GitHub Desktop.
Save mpfaff/84a6b830773375aa4a9381bfc5fea3ab to your computer and use it in GitHub Desktop.

chmod

The syntax for permissions is:

chmod UGO FILE

'UGO' representing User, Group, and Other respectively.

The following codes add up to create the permissions.

What Code
Read 4
Write 2
Execute 1

For example, if I wanted to make 'myresume.docx' writable by me and my group, and readable by everyone else, I would preform the following command.

chmod 664 myresume.docx

To make a file executable run:

chmod +x FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment