Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 3
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. Tuning the user environment
  


Setting variables with "set" page 10 of 13


The set built-in can also be used for setting variables, but when used that way it is optional. The bash command set FOO=foo means exactly the same as FOO=foo. Un-setting a variable is done with the unset built-in:


$ FOO=bar
$ echo $FOO
bar
$ unset FOO
$ echo $FOO

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact