The chmod command changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits.
$ chmod u+x foo.sh
$ chmod 700 foo.txt