Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you change the owner or group of a file?

Answer Posted / hr@tgksolutions.com

The chown command is used to change the owner of a file or directory. For instance, chown newowner filename would change the file's owner to "newowner". If you want to change both the owner and the group simultaneously, you will use a syntax like chown newowner:newgroup filename. For altering only the group, the chgrp command is used. As with most UNIX commands, care should be taken with these tools, ensuring that ownership is only granted to trusted users.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do chmod command do?

1288


What is “chmod” command?

1245


Enumerate some of the most commonly used network commands in unix?

1219


What is awk good for?

1194


Using unix command how to display no of records in oracle?

1210


How can you see the command line history?

1188


Are you in or at the office?

1174


Which unix command to make a new directory?

1195


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1329


What does the “echo” command do?

1197


What is ctrl d?

1157


What will the following command do?

1176


What does find command return in unix?

1204


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1270


What is the first character of the output in ls l command?

1263