chown not working

I am trying to take ownership of a directory recursively.

sudo chown -R themes/

But I am getting the error:

user@linux-main:/usr/share$ sudo chown -R themes/
chown: missing operand after ‘themes/’

What am I missing?

2

1 Answer

The command should be:

sudo chown -R $USER themes/

You are missing the username part that you intend to own the directory. The $USER refers to your username which can and should be substituted into that command.

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like