Remove read only attribute of a file from command line

We can clear read-only attribute of a file from command line using attrib command.

attrib -R

Example:

attrib -R example.doc

The above command will remove read-only attribute for the file example.doc.