How do you change file permissions?

Answer Posted / hr@tgksolutions.com

The chmod command, short for "change mode", is employed to modify file or directory permissions. You can use symbolic or numerical notation with this command. For instance, chmod u+x filename adds execute permission for the user (owner), while chmod 755 filename sets permissions to rwxr-xr-x. The command offers flexibility, allowing users to control access to their files and directories precisely.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who invented grep?

869


How do I search for text in vi?

768


Describe the usage and functionality of the command rm –r * in unix?

1528


How do I use grep to search for a file?

789


What command is used to check the current users?

794


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1028


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

980


What are bash commands?

798


What's a command word?

802


Why is grep called grep?

1000


How do I clear my terminal history?

803


What is updatedb?

766


What is the use of cut command in unix?

955


What does 'mkdir' command do in UNIX?

913


What are filter commands in unix?

796