ALERT

[WEBINAR] Building a Business-Driven Data Architecture

Change Mode (chmod)

Definition - What does Change Mode (chmod) mean?

Change mode (chmod) is a Unix operating system command used by administrators and programmers to set or change the access permissions of a file or directory. These settings determine the level of access to be granted to the given file or directory.

The chmod command was first used in ATT Unix 1 and is still in use today by Unix-like operating systems. It is also available as a C language library function in Unix.

Techopedia explains Change Mode (chmod)

The syntax for change mode is as follows:

chmod [OPTIONS]... MODE[,MODE]... FILENAME1 [,FILENAME2]...
chmod [OPTION]... OCTAL-MODE FILENAME1 [,FILENAME2]...
chmod [OPTION]... [REFERENCE] [OPERATOR] [MODES] FILENAME1 [,FILENAME2]..

The chmod command has the following options:

-R, --recursive: Changes the directories and files recursively
-v, --verbose: Displays a diagnostic report for every processed file
-c, --changes: Like verbose but displays only when there are actual changes
-f, --silent:Suppress error messages
--reference=RFILE: Use RFILE’s mode instead of MODE values

Permissions are granted as follows: a: All
o: Other
g: Group
r: Read
u: User
w: Write
x: Execute or run as a program

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.