Given a file test.txt, write a unix command to revoke write permissions from all users. code example
Example 1: how to change permissions on a file in linux
sudo chmod -R ugo+rwx /file/path
Example 2: how to revoke permissions from group and others
chmod go-rwx file