How do you change file permissions and ownership in Unix?

Answers were Sorted based on User's Feedback



How do you change file permissions and ownership in Unix?..

Answer / hr@tgksolutions.com

• Changing Permissions: Use the chmod command to change file permissions. For example, chmod 755 filename sets the permissions to read, write, and execute for the owner, and read and execute for the group and others.
• Changing Ownership: Use the chown command to change the ownership of a file. For example, chown user:group filename changes the owner to user and the group to group.

Is This Answer Correct ?    0 Yes 0 No

How do you change file permissions and ownership in Unix?..

Answer / nashiinformaticssolutions

• Changing Permissions: Use the chmod command to change file permissions. For example, chmod 755 filename sets the permissions to read, write, and execute for the owner, and read and execute for the group and others.
• Changing Ownership: Use the chown command to change the ownership of a file. For example, chown user:group filename changes the owner to user and the group to group.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

How do I delete files from command prompt?

0 Answers  


to list a particular line in the file

5 Answers  


What is the search command in unix?

0 Answers  


How to get the operating system's information in unix?

6 Answers   IBM, TCS,


What is the function of grep command in unix?

0 Answers  


How to delete a directory containing files and folders?

3 Answers  


how many types of file in unix?

34 Answers   MNC, TCS,


How do you execute a UNIX command in the background?

6 Answers  


What is use of sed command?

12 Answers   BitWise, Infosys, Reliance,


What is command statement?

0 Answers  


What is merge command in unix?

0 Answers  


How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.

12 Answers   IBM,


Categories