Skip to content

Instantly share code, notes, and snippets.

@sabuhish
Last active April 14, 2020 06:27
Show Gist options
  • Save sabuhish/0f9b00039e8de9d976364b2d1ce21a1e to your computer and use it in GitHub Desktop.
Save sabuhish/0f9b00039e8de9d976364b2d1ce21a1e to your computer and use it in GitHub Desktop.
executable sh script
chmod +x filename
sudo mv /usr/local/bin
chmod 400 file To protect a file against accidental overwriting.
chmod 500 directory To protect yourself from accidentally removing, renaming or moving files from this directory.
chmod 600 file A private file only changeable by the user who entered this command.
chmod 644 file A publicly readable file that can only be changed by the issuing user.
chmod 660 file Users belonging to your group can change this file, others don't have any access to it at all.
chmod 700 file Protects a file against any access from other users, while the issuing user still has full access.
chmod 755 directory For files that should be readable and executable by others, but only changeable by the issuing user.
chmod 775 file Standard file sharing mode for a group.
chmod 777 file Everybody can do everything to this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment