Your Question: How Do You Create a Variable in Linux?
Contents How Do You Declare a Variable in Linux? Variables 101 to Create a Variable, You Just Provide a Name and Value for It. Your Variable Names Should Be...
Contents
How do you declare a variable in Linux?
Variables 101
To create a variable, you just provide a name and value for it. Your variable names should be descriptive and remind you of the value they hold. A variable name cannot start with a number, nor can it contain spaces. It can, however, start with an underscore.
How do you set a variable in UNIX?
Set environment variables on UNIX
- At the system prompt on the command line. When you set an environment variable at the system prompt, you must reassign it the next time you log-in to the system.
- In an environment-configuration file such as $INFORMIXDIR/etc/informix.rc or .informix. …
- In your .profile or .login file.