1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-31 01:13:40 +02:00
tldr/pages/common/readonly.md

357 B

readonly

Set read-only shell variables. More information: https://www.gnu.org/software/bash/manual/bash.html#index-readonly.

  • Set a read-only variable:

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

  • Mark a variable as read-only:

readonly {{existing_variable}}

  • [p]rint the names and values of all read-only variables to stdout:

readonly -p