

{"id":109679,"date":"2022-08-08T09:00:50","date_gmt":"2022-08-08T03:30:50","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=109679"},"modified":"2022-08-08T09:46:08","modified_gmt":"2022-08-08T04:16:08","slug":"linux-environment-variables","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/","title":{"rendered":"Linux Environment Variables"},"content":{"rendered":"<p>In this article, we will learn different things about the Linux environment. When I say Linux environment, I mean the environment variables present on the Linux-based operating systems.<\/p>\n<p>We will go through what a variable is, what are the different types of variables, How to list or view the environment variables, how to create a new Linux environment variable, how to set a local Linux environment variable and so many other interesting topics. So buckle up, pay attention and read right to the end.<\/p>\n<h3>What is an environment variable?<\/h3>\n<p>Before we even address what an environment variable is, let us discuss what a regular variable is. In layman&#8217;s language, a variable is an unknown quantity. Since we are talking Linux, let us see it from a technical angle.<\/p>\n<p>In the technical world, a variable is a location for storing any value that can be changed depending on conditions passed to the application or program. If variables did not exist, writing programs would be a million times harder than it is today. Variables help us write flexible programs.<\/p>\n<p>Now that we have seen what is a variable, let us look at what an environment variable is. Environment variables are dynamic values that affect the programs that are running on a server.<\/p>\n<p>Environment variables exist on every single operating system on earth and they can be created, deleted, saved, or edited.<\/p>\n<p>The environment variables are placeholders (since they are empty that can take any value) for information stored within the system that passes data to programs launched in the shells.<\/p>\n<p>Environmental variables define the environment\u2019s behavior. They allow you to customize how the system works and the behavior of the applications on the systems. For example, the environment variables can store information about a browser, text editor, path to executable files, keyboard settings and so many more.<\/p>\n<p>Some environmental variables are already set by the system and others can be set by you. A few of the variables are also set by shells or any other program that loads into the system.<\/p>\n<h3>Scope of environment variables<\/h3>\n<p>Scope here means, from what region can the variable be accessed. An environment variable can have a scope of local or global.<\/p>\n<h4>1. Global Environment Variable<\/h4>\n<p>An environment variable with global scope can be accessed from anywhere in that specific environment that exists in the terminal. The variable can be used in all kinds of programs, processes, or programs running in the environment within the terminal.<\/p>\n<h4>2. Local Environment Variable<\/h4>\n<p>An environment variable with a local scope cannot be accessed by any program, application, or process running in the terminal. The variable can only be accessed by the terminal itself.<\/p>\n<h3>Environment variables vs shell variables<\/h3>\n<p>Variables in an operating system can be classified into 2 main types, shell variables, and environmental variables. Even though we are discussing ENVs, let us give a brief moment to understand shell variables also.<\/p>\n<h4>Shell variables<\/h4>\n<p>These are the variables that apply only to a certain shell. Each shell, like bash, Korn, bourne, zsh, etc, have their own set of internal shell variables.<\/p>\n<h4>Environment variables<\/h4>\n<p>These are the variables that are inherited by all shield processes and shells and are available system-wide.<\/p>\n<h3>Rules for writing variables in the terminal<\/h3>\n<p>We cannot create variables as per our own rules, we need to follow the below-listed formats while creating variables in the terminal.<\/p>\n<p>1. The names of the variables are case-sensitive. By convention, all the variables created must have upper case names.<\/p>\n<p>2. When you need to assign multiple values to a single variable, you must separate the values by a colon (:).<\/p>\n<p>3. You must give no space before and after the equals (=) sign.<\/p>\n<p>For example: VAR=&lt;value_1&gt;:&lt;value_2&gt;<\/p>\n<p>After creating a variable, you must also follow a rule while writing it in the terminal. No matter which variable\u2019s name you are writing in the terminal, (either created or default) you will have to specify a dollar ($) sign in front of it. However, while redefining variables, do not use the dollar ($) sign<\/p>\n<h3>Environmental variables in Linux<\/h3>\n<p>Before we even operate on the variables (like creating, listing, etc), let us take a look at some of the most important variables in the Linux-based operating systems.<\/p>\n<h4>1. DISPLAY<\/h4>\n<p>This variable contains the identifier for the display that X11 programs should use by default.<\/p>\n<h4>2. HOME<\/h4>\n<p>This variable indicates the home directory of the current user: the default argument for the cd built-in command.<\/p>\n<h4>3. IFS<\/h4>\n<p>This variable indicates the Internal Field Separator that is used by the parser for word splitting after expansion.<\/p>\n<h4>4. LANG<\/h4>\n<p>This variable expands to the default system locale; LC_ALL can be used to override this.<\/p>\n<h4>5. LD_LIBRARY_PATH<\/h4>\n<p>This variable contains a colon-separated list of directories that the dynamic linker should search for shared objects while building a process image after exec, before searching in any other directories.<\/p>\n<h4>6. PATH<\/h4>\n<p>This variable indicates the search path for commands. It consists of a colon-separated list of directories in which the shell looks for commands.<\/p>\n<h4>7. PWD<\/h4>\n<p>This variable indicates the current working directory as set by the cd command.<\/p>\n<h4>8. RANDOM<\/h4>\n<p>This variable generates a random integer between 0 and 32,767<\/p>\n<h4>9. SHLVL<\/h4>\n<p>This variable increments by one each time an instance of bash is started.<\/p>\n<h4>10. TERM<\/h4>\n<p>This variable refers to the display type.<\/p>\n<h4>11. TZ<\/h4>\n<p>This variable refers to the Time zone. It can take values like GMT, AST, and many more.<\/p>\n<h4>12. UID<\/h4>\n<p>This variable Expands to the numeric user ID of the current user, initialized at the shell startup.<\/p>\n<h4>13. USER<\/h4>\n<p>This variable contains the username.<\/p>\n<h4>14. SHELL<\/h4>\n<p>This variable contains the shell that is being used by the user.<\/p>\n<h4>15. EDITOR<\/h4>\n<p>This variable contains the path to the program which edits the content of files.<\/p>\n<h4>16. OLD_PWD<\/h4>\n<p>This variable contains the previous working directory.<\/p>\n<h4>17. PAGER<\/h4>\n<p>This variable contains the names of the program used for paging output.<\/p>\n<h4>18. PS1<\/h4>\n<p>It prompts the contents of the shell, it is short for \u201cprompt string 1\u201d.<\/p>\n<h4>19. BROWSER<\/h4>\n<p>This variable displays the path to the default web browser.<\/p>\n<h4>20. MAIL<\/h4>\n<p>This variable displays the path to the current user\u2019s mailbox.<\/p>\n<h4>21. LS_COLORS<\/h4>\n<p>This variable defined color codes for coloring the output of the \u2018ls\u2019 command.<\/p>\n<h4>22. HOSTNAME<\/h4>\n<p>This variable contains the computer\u2019s hostname.<\/p>\n<h4>23. SHELLOPTS<\/h4>\n<p>This variable contains options defined with the \u2018set\u2019 command.<\/p>\n<h4>24. HISTSIZE<\/h4>\n<p>This variable contains the number of command history lines allotted for use.<\/p>\n<h4>25. HISTFILESIZE<\/h4>\n<p>This variable displays the number of lines in command-line history.<\/p>\n<h4>26. BASH_VERSION<\/h4>\n<p>This variable contains the version of the bash shell used.<\/p>\n<p>Now that we have laid down the fundamentals like what are the environment variables, the format of creating them, and the important environment variables, let us see how to modify, create, set, delete and list the variables using the terminal in Linux-based operating systems.<\/p>\n<h3>Listing all the environment variables<\/h3>\n<p>If you want to print all of the environment variables, use the command: \u201cprintenv\u201d. Since there are a lot of variables present in the system, you can use pipe the command with the less filter as follows: \u201cprintenv | less\u201d<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/listing-all-the-environment-variables.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109773\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/listing-all-the-environment-variables.webp\" alt=\"listing all the environment variables\" width=\"989\" height=\"1001\" \/><\/a><\/p>\n<h4>Searching for a single environment variable<\/h4>\n<p>If you want to check a single environment variable value, use the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\u201cprintenv &lt;variable name&gt;\u201d<\/pre>\n<h4><\/h4>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/searching-for-a-single-environment-variable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109775\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/searching-for-a-single-environment-variable.webp\" alt=\"searching for a single environment variable\" width=\"521\" height=\"193\" \/><\/a><\/h4>\n<p>We can further pipe this command with grep to provide more specific outputs. We can combine them as follows: printenv | grep &lt;variable name&gt;<\/p>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/Searching-for-single-environment-variable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109774\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/Searching-for-single-environment-variable.webp\" alt=\"Searching for single environment variable\" width=\"593\" height=\"195\" \/><\/a><\/h4>\n<h3>Setting an environment variable<\/h3>\n<p>If you want to create an environment variable in Linux, you can do so by using the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;variable name&gt;=&lt;variable value&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>But how do you check if the variable has been created or not. You cannot use the \u201cprintenv\u201d command as it is useless in this condition.<\/p>\n<p>Therefore to confirm the creation of the variable, we use the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\u201cset | grep &lt;variable_name&gt;\u201d<\/pre>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-environment-variable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109778\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-environment-variable.webp\" alt=\"setting environment variable\" width=\"878\" height=\"179\" \/><\/a><\/h4>\n<p>Now you can see that the terminal prints the variable we created.<\/p>\n<h3>Exporting an environment variable<\/h3>\n<p>In the previous output, using the printenv command did not print the variable we created. In order for the command to print our variable, we need to first export it. To export an environment variable we simply use the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">export &lt;variable name&gt;<\/pre>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/exporting-a-variable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109779\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/exporting-a-variable.webp\" alt=\"exporting a variable\" width=\"882\" height=\"157\" \/><\/a><\/h4>\n<p>Another way of checking our successful creation and exporting of the variable we created, we can use the bash command to start a child session:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/confirming-creation-by-creating-a-child-session-of-shell.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109780\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/confirming-creation-by-creating-a-child-session-of-shell.webp\" alt=\"confirming creation by creating a child session of shell\" width=\"644\" height=\"123\" \/><\/a><\/p>\n<h3>Setting an environment variable permanently<\/h3>\n<p>If you want a variable to continue existing even after you kill the shell session, you need to set it permanently. To do so, use the command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\u201csudo nano ~\/.bashrc\u201d<\/pre>\n<p>This command will let you edit the .bashrc file:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-an-environment-variable-permanently.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109776\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-an-environment-variable-permanently.webp\" alt=\"setting an environment variable permanently\" width=\"722\" height=\"77\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-environment-variable-permanently.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109777\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-environment-variable-permanently.webp\" alt=\"setting environment variable permanently\" width=\"766\" height=\"866\" \/><\/a><\/p>\n<p>In the .bashrc file, Write a line for each variable you wish to add using the following syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">export &lt;variable_name&gt;=&lt;variable value&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-an-environment-variable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109781\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/setting-an-environment-variable.webp\" alt=\"setting an environment variable\" width=\"780\" height=\"281\" \/><\/a><\/p>\n<p>After adding your variable, save and exit the file. The changes you made will be applied after you restart the shell. However, if you are lazy and impatient like me, you can simply type the command \u201csource ~\/.bashrc\u201d to apply the changes during the current session itself.<\/p>\n<h3>Deleting an environment variable<\/h3>\n<p>If you want to delete or unset a permanent variable you can use the command: unset &lt;variable name&gt;<\/p>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/deleting-a-permanent-variable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109782\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/deleting-a-permanent-variable.webp\" alt=\"deleting a permanent variable\" width=\"829\" height=\"109\" \/><\/a><\/h4>\n<p>You can check if the variable has been successfully deleted or not by using the printenv command.<\/p>\n<h3>Persistent environment variables<\/h3>\n<p>If you want to make environment variables persistent, you need to define those variables in the bash configuration files. In most Linux based operating systems, when you start a new session, the environment variables are read from the following files:<\/p>\n<p>1. \/etc\/environment &#8211; Use this file to set up system-wide environment variables. Variables in this file are set in the following format:<\/p>\n<p>2. \/etc\/profile &#8211; Variables set in this file are loaded whenever a bash login shell is entered.<\/p>\n<p>3. Per-user shell specific configuration files<\/p>\n<h3>Summary<\/h3>\n<p>In this article, you have learned what environmental variables are, their scope of them, and the rules for defining environmental variables. We also looked at some of the most important environmental variables along with how to list, set, export, and delete an environment variable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn different things about the Linux environment. When I say Linux environment, I mean the environment variables present on the Linux-based operating systems. We will go through what a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":109771,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[26956],"class_list":["post-109679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux-environment-variables"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux Environment Variables - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about Linux environment &amp; variables present in it. See how to view environment variables, how to create new Linux environment variable\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Environment Variables - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about Linux environment &amp; variables present in it. See how to view environment variables, how to create new Linux environment variable\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-08T03:30:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-08T04:16:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/environment-variables-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Environment Variables - DataFlair","description":"Learn about Linux environment & variables present in it. See how to view environment variables, how to create new Linux environment variable","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/","og_locale":"en_US","og_type":"article","og_title":"Linux Environment Variables - DataFlair","og_description":"Learn about Linux environment & variables present in it. See how to view environment variables, how to create new Linux environment variable","og_url":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-08-08T03:30:50+00:00","article_modified_time":"2022-08-08T04:16:08+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/environment-variables-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9"},"headline":"Linux Environment Variables","datePublished":"2022-08-08T03:30:50+00:00","dateModified":"2022-08-08T04:16:08+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/"},"wordCount":1631,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/environment-variables-in-linux.webp","keywords":["Linux Environment Variables"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/","url":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/","name":"Linux Environment Variables - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/environment-variables-in-linux.webp","datePublished":"2022-08-08T03:30:50+00:00","dateModified":"2022-08-08T04:16:08+00:00","description":"Learn about Linux environment & variables present in it. See how to view environment variables, how to create new Linux environment variable","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/linux-environment-variables\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/environment-variables-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/05\/environment-variables-in-linux.webp","width":1200,"height":628,"caption":"environment variables in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/linux-environment-variables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux Environment Variables"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/b49855299264df5e27e3ec6c2cd9fde9","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ef46b745ddad2fad690af626c6ef29b91809ad0a9f5ef398d07817d8cad042f5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team is a group of passionate educators and industry experts dedicated to providing high-quality online learning resources on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. With years of experience in the field, the team aims to simplify complex topics and help learners advance their careers. At DataFlair, we believe in empowering students and professionals with the knowledge and skills needed to thrive in today\u2019s fast-paced tech industry. Follow us for Free courses, expert insights, tutorials, and practical tips to boost your learning journey.","url":"https:\/\/data-flair.training\/blogs\/author\/datafbdad\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/109679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=109679"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/109679\/revisions"}],"predecessor-version":[{"id":109783,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/109679\/revisions\/109783"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/109771"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=109679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=109679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=109679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}