The chown command change file owner and group. The chmod command change file mode (bits) i.e. permission. A wrong permission can create problems on Linux or Unix-like system. It is clearly illustrated in this comic.

Advertisement

chown and chmod

chown and chmod

Credit: turnoff.us

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

0 comments… add one

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.