Linux chcon Command
What is Linux chcon Command?
In this tutorial we learn how to use chcon
command in Linux. chcon
command is chcon - change file security context.
chcon Syntax
chcon [OPTION]... CONTEXT FILE...
chcon [OPTION]... [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE...
chcon [OPTION]... --reference=RFILE FILE...
chcon Examples
chcon Command Manual / Help
We can use man
and info
command to see the manual page of chcon
command. chcon
command also have --help
option to show list of options.
To open man page for chcon
command we can use command below. To exit man or info page you can press q
.
man chcon
To open info page for chcon
command we can use command below.
info chcon
To open help page from chcon
command we can run command below.
chcon --help
Linux chcon Command Source Code
You can find chcon
command source code from the folowing repositories:
- chcon source code on GitHub
- chcon source code on GNU Savannah cgit
- chcon source code on GNU Savannah gitweb
Related Linux Commands
You can read tutorials of related Linux commands below:
Summary
In this tutorial we learn how to use chcon
in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.