readonly Command Examples

Set read-only shell variables. More information: https://manned.org/readonly.1posix.

readonly {{variable_name}}={{value}}

readonly {{existing_variable}}

readonly -p