Best Linux Chmod Command With Examples: Download Linux Free E-Book's
Best Linux Chmod Command With Examples: Download Linux Free E-Book's
Home
Linux HowTo’s
Linux Basic Tool’s
Linux News
Basic Linux Quiz 1
Free eBooks
Subscribe
About Us
PREVIOUS STORY
BY BALAMUKUNDA SAHU · PUBLISHED FEBRUARY 20, 2018 · UPDATED FEBRUARY 21, 2018
SHARE
Custom Search
Search
0
0
h s j 3 f b 1 q
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 1/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
Introduction
I
n this article we are going to learn what is Linux chmod
command and how to use it. chmod command is used in
Linux related operating system to Change file mode bits. In
simple language you can change the permissions of files and
directories in Linux using chmod command. There are two methods
by which we can change the permission’s :
1. Alphabetical
2. Numerical
Alphabetical Way :
To change permission of user you have to use the alphabet “u“. Like
that for Group “g” and for others it’s “o“.
Newsletter
Like User, Group and Others we have to remember some alphabets
Signup for Updated Linux Tutorials,
to give Read, Write and Execute permission Like for Read Guides and News.
permission you have to use the alphabet “r“, for Write “w” and for
Execute it’s “x“. Email*
shown below :
Subscribe
u – User
g – Group
o – Others
r – Read
w – Write
x – Execute
Numerical Way :
CATEGORIES
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 2/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
To use this method you have to remember below Rules and Linux Basic Commands (26)
Numbers for proper use.
Linux Basic Tool's (29)
4 – To give Read Permission
2 – To give Write Permission Linux HowTo's (222)
4+2 = 6 : This will add Read & Write permission to User/Owner. RHEL 7 (14)
elinuxbook@ubuntu:~$ ls -l file.txt
-rw-rw-r-- 1 elinuxbook elinuxbook 0 Feb 20 06:16 file.t
Above I have given two examples. Now let’s identify the permission
of file.txt. If you notice the properties of the file starts with “-rw-rw-
r–“. Here we can identify what permission assigned to file.txt.
Important symbols :
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 3/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
elinuxbook@ubuntu:~$ ls -l file.txt
-rw------- 1 elinuxbook elinuxbook 0 Feb 20 06:16 file.t
Also Read :
Numerical Way :
User/Owner.
elinuxbook@ubuntu:~$ ls -l file.txt
----rw-r-- 1 elinuxbook elinuxbook 0 Feb 20 07:18 file.t
Give permission to Everyone
Method : 1
elinuxbook@ubuntu:~$ ls -l file.txt
-rwxrwxrwx 1 elinuxbook elinuxbook 0 Feb 20 06:44 file.t
Method : 2
You can also use the below Linux chmod command to do the same.
elinuxbook@ubuntu:~$ ls -l file.txt
-rwxrwxrwx 1 elinuxbook elinuxbook 0 Feb 20 06:44 file.t
Numerical Way :
elinuxbook@ubuntu:~$ ls -l file.txt
-rw-rwxrwx 1 elinuxbook elinuxbook 0 Feb 20 09:40 file.t
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 5/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
You can copy permission from one file to another. Here I have a file
named a1.txt whose permission is something like “-rw-r–r–“.
elinuxbook@ubuntu:~$ ls -l a1.txt
-rw-r--r-- 1 elinuxbook elinuxbook 0 Feb 20 07:21 a1.txt
elinuxbook@ubuntu:~$ ls -l a2.txt
-rw-r--r-- 1 elinuxbook elinuxbook 0 Feb 20 07:22 a2.txt
Numerical Way :
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 6/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
For chmod command more options and arguments you can use the
below command.
You can use the Linux chmod command with argument –version to
check the version of installed chmod command version.
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 7/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
If you found this article useful then Like us, Share this post on your
preferred Social media, Subscribe our Newsletter OR if you have
something to say then feel free to comment on the comment box
below.
h s j 3 f b 1 q 1 o 5
SHARES
Ads by Google
Balamukunda Sahu
This is Balamukunda Sahu the Founder and Editor of ELinuxBook have 5+
years of Industrial Experience. I thankful to all our website viewers who
encourage me to write quality posts and articals, Keep visit to our site and I will
bring all latest Linux Tutorials, Updates and News for you.
4 0 0
LEAVE A REPLY
Comment
Name * Email *
Website
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 8/9
21/2/2018 BEST LINUX CHMOD COMMAND WITH EXAMPLES
Post Comment
Balamukunda Sahu on HOW TO INSTALL BEST LINUX CHMOD COMMAND WITH Linux Basic Commands
ULTRACOPIER ADVANCE COPY SOFTWARE IN EXAMPLES
UBUNTU 16.04 – A TERACOPY ALTERNATIVE FOR Linux Basic Tool's
LINUX HOW TO INSTALL RIOT IM DESKTOP MATRIX
CLIENT IN UBUNTU 16.04 – A BEST CHAT Linux HowTo's
Balamukunda Sahu on HOW TO INSTALL CLIENT FOR LINUX
LAMP STACK ON UBUNTU 16.04 Linux News
HOW TO INSTALL SPEK AUDIO SPECTRUM
Balamukunda Sahu on HOW TO INSTALL ANALYZER (SOUND ANALYZER) IN UBUNTU Monitoring Tools
LAMP STACK ON UBUNTU 16.04 16.04 – A BEST FREQUENCY ANALYZER FOR
LINUX Programming Languages
Balamukunda Sahu on HOW TO INSTALL
LAMP STACK ON UBUNTU 16.04 HOW TO INSTALL TRAVERSO DAW BEST RHEL 7
Copyright Policy
Contact Us
Sitemap
Elinuxbook: Linux Tutorials, Guides, Howtos, Tips and Tricks © 2018. All
Rights Reserved.
This work is licensed under a :
Without our permission Content/Work of this site cannot be Republished
either Online or O line, .
http://www.elinuxbook.com/best-linux-chmod-command-with-examples/ 9/9