chmod is the command and system call used to change the access permissions and the special mode flags of file system objects (files and directories).
chmod permissions of the file
stat -c %a ./environment
644 // output
chmod permissions of the folder
stat -c %a ./etc
755 // output