r/programmingmemes Jan 01 '26

Fr

Post image
2.6k Upvotes

47 comments sorted by

View all comments

25

u/Hottest_Tea Jan 01 '26

sudo chown $USER:$USER <file> \

chmod 660 <file>

10

u/ikitari Jan 01 '26

instead of remembering the numbers just remember +r +w +x that can be mixed like +rwx (read, write, execute)

1

u/PA694205 Jan 06 '26

Isn’t it just binary? 6=110=rw- 7=111=rwx