Use the command chmod to modify file and directory permissions (change mode). The owner of a file can modify the read, write, and execute permissions of the file for the user (u), group (g), or others (o) by adding (+) or deleting (-) the read, write, and executes permissions.