Linux expansion commands
OfWolfAndMan
Member Posts: 923 ■■■■□□□□□□
in Off-Topic
Hey guys. Linux noob here. Question: I am reading the Linux Command Line and just encountered expansion commands. I understand that the $ prefix to let's say USER is variable, but I'm not exactly understanding their purpose. Anyone have a handy explanation?
:study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation []
Comments
-
UnixGuy Mod Posts: 4,570 ModIf I understand your question correctly, this can be used to define variables for script.
eg:# export UnixGuy="hi" # echo $UnixGuy