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

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

1103


What does pipe () return?

1023


What is grep command in unix with examples?

1137


Is grep faster than awk?

987


Which command should you use to find the remaining disk space in unix server?

1232


How do I search for a file in unix command?

975


Write a command to display a file’s contents in various formats?

1149


What is difference between grep and find command in unix?

1142


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1336


What is the unix command to confirm a remote host is alive or not?

1138


Is command prompt unix?

1096


How do I use nslookup?

1036


What does the md command do?

1073


What does this command do,"$more readme.txt“?

1100


What does the metacharacter mean?

1087