unset (remove an environmental variable)

Removes an environmental variable.

Format:    unset varname
Examples:  unset var2

Totally removes the variable named var2. If you want the variable to remain, but to be empty, set the variable to NULL.

Get Spring Into Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.