-1

I want to change the owner and the group owner for all the files in the current working directories with a single line command. I don't want to have double line as follows;

sudo chown you <some_file> chgrp new_group some_file

2 Answers2

0

sudo chown you:new_group some_file

Gedge
  • 305
  • 2
  • 9
0

Try this piece of code

sudo chown new_user:new_group *

sudo = super user do chown = change owner '*' = target all the files in the working directory

Paco Hdez
  • 1
  • 1