mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 03:52:56 +00:00
Update cheatsheets
This commit is contained in:
21
readonly
Normal file
21
readonly
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# readonly
|
||||
|
||||
> Set read-only shell variables.
|
||||
> More information: <https://manned.org/readonly.1posix>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user