File Permissions & Ownership Flashcards
What does the symbol ‘r’ represent?
Read permission
‘r’ allows the user to read the contents of a file.
What does the symbol ‘w’ represent?
Write permission
‘w’ allows the user to modify or delete the contents of a file.
What does the symbol ‘x’ represent?
Execute permission
‘x’ allows the user to run the file as a program.
What command is used to show file permissions?
ls -l
This command lists files in long format, displaying permissions and other details.
What does ‘chmod 755 <file>' do?</file>
Change permissions to rwxr-xr-x
This command sets read, write, and execute permissions for the user, and read and execute permissions for the group and others.
What does ‘chmod u+x <file>' accomplish?</file>
Add execute permission to the user
This command modifies the file permissions to give the user execute rights.
What is the purpose of the command ‘chown user:group <file>'?</file>
Change file owner and group
This command assigns a new owner and group to the specified file.
What does the command ‘umask’ display?
Show default permissions
This command shows the default permission settings that will be applied to newly created files.