Linux Commands Helper

💬 Your AI-powered Linux assistant

chmod Command - Change File Permissions

The chmod command is used to change the access permissions of files and directories.

Syntax

chmod [options] mode file

Examples

chmod 755 file.sh

Set file.sh permissions to rwxr-xr-x.

chmod u+x script.sh

Add execute permission for the owner of script.sh.

chmod -R 644 /var/www/html

Recursively set permissions to rw-r--r-- for all files in /var/www/html.

Notes

  • chmod can be used with symbolic or numeric modes to change permissions.
  • Be careful when using recursive options as they affect all nested files and directories.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame