shell script

What is command line arguments ?

Command line arguments are inputs that you provide to a program when you run it from the command line or terminal. These arguments allow you to influence the behavior of the program without changing its source code. They’re often used to pass information like filenames, options, or parameters.

Export Variable permanently

export environment variables permanently in Linux by modifying specific start-up files. Here’s a quick breakdown:

Files to Modify:

  • ~/.profile or ~/.bashrc: These files are located in the user’s home directory and apply only to that user.
  • /etc/profile: This file is used for global access and applies to all users on the system.

Adding Environment Variables:

  • Add the export command (e.g., export VARIABLE_NAME=value) to one of these files to make the variable persistent across sessions.

Leave a Comment