chmod
Synopsis
chmod [-R] [-v] <permission_mode> <filepath> [<filepath> ...]
Syntax conventions | Description |
---|---|
UPPERCASE |
Literal keyword. |
Lowercase |
Not literal. |
<`Italics>` |
Variable value. Replace with a valid option or user-defined value. |
|
Optional.
Square brackets ( |
|
Group.
Parentheses ( |
|
Or.
A vertical bar ( |
|
Repeatable.
An ellipsis ( |
|
Single quotation ( |
|
Map collection.
Braces ( |
|
Set, list, map, or tuple.
Angle brackets ( |
|
End CQL statement.
A semicolon ( |
|
Separate the command line options from the command arguments with two hyphens ( |
|
Search CQL only: Single quotation marks ( |
|
Search CQL only: Identify the entity and literal value to overwrite the XML element in the schema and solrconfig files. |
Definition
The short form and long form parameters are comma-separated.
Command arguments
- filepath
-
Explicit or relative filepath.
-
Wildcard characters are supported.
-
Explicit file system prefixes
dsefs:
andfile:
are supported. -
..
is the parent directory.
-
- filepath
-
Explicit or relative filepath.
-
Wildcard characters are supported.
-
Explicit file system prefixes
dsefs:
andfile:
are supported. -
..
is the parent directory.
-
- permission_mode
-
Octal representation of permission mode for owner, group, and others:
-
0 — no permission
-
1 — execute
-
2 — write
-
3 — write and execute
-
4 — read
-
5 — read and execute
-
6 — read and write
-
7 — read, write, and execute
-
- -R, --recursive
-
Remove directories and their contents recursively.
- -v, --verbose
-
Turn on verbose output.
Examples
Change permission to make file readable, writable and executable by all users
dsefs dsefs://127.0.0.1:5598/ > chmod 777 file:/home/myFile
Change permission to make file readable, writable and executable by owner and only executable by group and others
dsefs dsefs://127.0.0.1:5598/ > chmod 711 file:/home/myFile