H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




chattr Linux Commands


Topic

What is Linux chattr Command?




Explanation

chattr COMMAND:
     chattr command is used to change the file attributes. This is an admin command. Root user only can change the file attributes/Process.

SYNTAX:
  The Syntax is
     chattr [options] filename

OPTIONS:
     
+i Make the file as Read-Only.
-i Remove the Read-Only.
+a Can't open file for writing.
-a Open file for writing.
+S The changes in the file are written synchronously on the disk.



EXAMPLE:
     
  1. chattr +i test.txt

    Here the 'test.txt' file has the write permission, to make it as Read-Only file use +i option.

  2. chattr -i test.txt

    The above command process is used to remove the Read-Only mark.






        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links