1

I was asked this question but didn't know what it does. I know chmod and its usages but what does this exactly do ?

1
  • In addition to the answers below, that command may complain that it can't find file g+x. You need to separate the mode strings with a comma instead of a space. – glenn jackman Oct 31 '13 at 13:30
2

Change permissions for file alpha, allowing write access for all users and execute access for other users in the file's group. That's my interpretation of it anyway, which seems like an odd combination of permissions to set.

http://www.ss64.com/bash/chmod.html - Man pages are our best friends.

1

In general chmod refers to change mode you can use alpha method to change folder permissions

Alpha method: Using alphabets (w, x, r, u, o, g, a, -, +, =, s, t) to change permissions for a file/folder

w--Write

x--eXecute

r—Read

u -- User

g -- Group

o – Others

the command allow you to write access for all users and execute access for other users in file's group

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.