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




chown Linux Commands


Topic

What is Linux chown Command?




Explanation

chown COMMAND:
     chown command is used to change the owner / user of the file or directory. This is an admin command, root user only can change the owner of a file or directory.

SYNTAX:
  The Syntax is
     chown [options] newowner filename/directoryname

OPTIONS:
     
-R Change the permission on files that are in the subdirectories of the directory that you are currently in.
-c Change the permission for each file.
-f Prevents chown from displaying error messages when it is unable to change the ownership of a file.



EXAMPLE:
     
  1. chown hiox test.txt

    The owner of the 'test.txt' file is root, Change to new user hiox.

  2. chown -R hiox test

    The owner of the 'test' directory is root, With -R option the files and subdirectories user also gets changed.

  3. chown -c hiox calc.txt

    Here change the owner for the specific 'calc.txt' file only.






        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