mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 08:46:50 +00:00
Update cheatsheets
This commit is contained in:
21
linux/unset
Normal file
21
linux/unset
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# unset
|
||||
|
||||
> Remove shell variables or functions.
|
||||
> More information: <https://manned.org/unset>.
|
||||
|
||||
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
|
||||
|
||||
`unset {{foo}}`
|
||||
|
||||
- Remove the variables foo and bar:
|
||||
|
||||
`unset -v {{foo}} {{bar}}`
|
||||
|
||||
- Remove the function my_func:
|
||||
|
||||
`unset -f {{my_func}}`
|
||||
Reference in New Issue
Block a user