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 do you change permissions on a directory of file?

Answer Posted / bhaskar

To change permission on a file we can use chmod command.
Only thing to remember that to change a file permission one
must be the owner of that file or root in that system.

the typical format of chmod is

chmod <permissions> <filename(s)>

e.g. chmod +777 examplefile

The above command will provide read, write and execute
permission to all in the file examplename.

value for read is 4
write is 2
execute is 1

now to give all permissions it becomes 4+2+1=7

first digit refers to the permission of the owner.
second digit refers to the group permission and last digit
refers to permission to all

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you run a linux program in the background simultaneously when you start your linux server?

1116


Which password package is installed for the security of central password?

832


What does stands for in linux?

901


What is linux kernel? Is it legal to edit linux kernel?

1059


Is arch linux hard to use?

849


Can I use kali linux as my main os?

875


What are scripts in linux?

971


How linux is different from unix?

903


Which is the default shell in linux?

928


What is kernel parameters?

963


List the main applications of 8 bit microprocessors?

869


What are the qualities of soft links?

887


Is it legal to edit the linux kernel?

866


Which of the quoting or escape characters allows the dollar sign ($) to retain its special meaning?

875


Explain how to color the git console?

903