5 Levels of Using Chmod Commands in Linux

Precisely control the access permissions of your files

Yang Zhou
TechToFreedom

--

5 Levels of Using Chmod Commands in Linux
Image from Wallhaven

If you need to pick out one command in Linux that is essential but confusing for beginners, which one you will choose? 🤔

For me, it is the chmod command.

I started to use Linux many years ago. But something like the following made me confused many times:

  • chmod 664 file_name
  • chmod u+w,go-w file_name

What’s the number 664 mean? What’s the messy characters u+w or go-w mean? What’s the …?

Basically, they are just some rules and syntax of the chmod command. They are not hard to understand, but may scare newbies.

This article will explain the design and uses of the chmod command in a beginner-friendly and example-led way. After reading, you never need to google something about it again. 🙂

0. Understand the Basic Concepts of File Permissions in Linux

The name “chmod” is an abbreviation of “change mode”. It’s used to control the access permissions of files or directories from different users in Linux.

On the one hand, there are 3 types of permissions for a file:

--

--