Home Linux
 Bash Syntax

unset

Remove variable or function names

SYNTAX
      unset [-fv] [name]

OPTIONS
      -f    The names refer to shell Functions, 
            and the function definition is removed.
            Readonly variables and functions may not be unset. 

      -v    Each name refers to a shell Variable (default)

The return status is zero unless a name does not exist or is readonly.

uset is a BOURNE shell command and a POSIX `special' builtin.

"A good trader has to have three things: a chronic inability to accept things at face value, to feel continuously unsettled, and to have humility" - Michael Steinhardt

Related Linux Bash commands:

env
- Display, set, or remove environment variables
echo - Display message on screen
export - Set an environment variable
function - Define Function Macros
readonly - Mark variables/functions as readonly
set - Manipulate shell variables and functions

Equivalent Windows XP commands:

SET - Display, set, or remove Windows NT environment variables
SETX - Set environment variables permanently



Back to the Top

Simon Sheppard
SS64.com