What is environment variable?

This is a recommends products dialog
Top Suggestions
Starting at
View All >
Language
French
English
ไทย
German
繁體中文
Country
Hi
All
Sign In / Create Account
language Selector,${0} is Selected
Join & Shop in Lenovo Pro
Register at Education Store
Pro Tier Benefits
• Save up to an extra 5% on Think everyday pricing
• Purchase up to 10 systems per order (5 more than Lenovo.com)
• Spend $10K, advance to Plus Tier with increased benefits
Plus Tier Benefits
• Save up to an extra 8% on Think everyday pricing
• Purchase up to 25 systems per order (20 more than Lenovo.com)
• Spend $50K, advance for free to Elite Tier with increased benefits
• Take advantage of flexible payment options with TruScale Device as a Service. Learn More >
Elite Tier Benefits
• Save up to an extra 10% on Think everyday pricing
• Purchase up to 50 systems per order (45 more than Lenovo.com)
• Take advantage of flexible payment options with TruScale Device as a Service. Learn More >
Partner Benefits
• Access to Lenovo's full product portfolio
• Configure and Purchase at prices better than Lenovo.com
View All Details >
more to reach
PRO Plus
PRO Elite
Congratulations, you have reached Elite Status!
Pro for Business
Delete icon Remove icon Add icon Reload icon
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Your cart is empty! Don’t miss out on the latest products and savings — find your next favorite laptop, PC, or accessory today.
Remove
item(s) in cart
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Subtotal
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Hamburger Menu
Use Enter key to expand
  • Lenovo Pro Business Store

    Lenovo Pro Business Store

    Created with Sketch.
    Lenovo Pro Business Store

    Log In / Sign Up

    Learn More

  • Accessibility
    Accessibility
  • Contact Us
    {{contactNumber}}
    Contact Us

    Sales:

    Home:

    {{SalesNumber}}

    Business:

    {{SmallBusinessNumber}}

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

  • Lenovo Pro Business Store

    Lenovo Pro Business Store

    Created with Sketch.
    Lenovo Pro Business Store

    Log In / Sign Up

    Learn More

  • Accessibility
    Accessibility
  • Contact Us
    {{contactNumber}}
    Contact Us

    Sales:

    Home:

    {{SalesNumber}}

    Business:

    {{SmallBusinessNumber}}

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

  • Lenovo Pro Business Store

    Lenovo Pro Business Store

    Created with Sketch.
    Lenovo Pro Business Store

    Log In / Sign Up

    Learn More

  • Accessibility
    Accessibility
  • Contact Us
    {{contactNumber}}
    Contact Us

    Sales:

    Home:

    {{SalesNumber}}

    Business:

    {{SmallBusinessNumber}}

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

  • Lenovo Pro Business Store

    Lenovo Pro Business Store

    Created with Sketch.
    Lenovo Pro Business Store

    Log In / Sign Up

    Learn More

  • Accessibility
    Accessibility
  • Contact Us
    {{contactNumber}}
    Contact Us

    Sales:

    Home:

    {{SalesNumber}}

    Business:

    {{SmallBusinessNumber}}

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

  • Lenovo Pro Business Store

    Lenovo Pro Business Store

    Created with Sketch.
    Lenovo Pro Business Store

    Log In / Sign Up

    Learn More

  • Accessibility
    Accessibility
  • Contact Us
    {{contactNumber}}
    Contact Us

    Sales:

    Home:

    {{SalesNumber}}

    Business:

    {{SmallBusinessNumber}}

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

  • Lenovo Pro Business Store

    Lenovo Pro Business Store

    Created with Sketch.
    Lenovo Pro Business Store

    Log In / Sign Up

    Learn More

  • Accessibility
    Accessibility
  • Contact Us
    {{contactNumber}}
    Contact Us

    Sales:

    Home:

    {{SalesNumber}}

    Business:

    {{SmallBusinessNumber}}

    Chat Now >

    Visit Sales Support Page >


    Order Support:

    Order Lookup >

    Visit Order Support Page >

    Technical Support >

Lenovo
skip to main content
  • Account
    avatar
    {{userInfo.userNameAbb || ''}}
    Hi , {{userInfo.firstNameFormat || userInfo.firstName}}!
    Sign In / Create Account
    Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Lenovo Family Hub
    Manage your family's orders all in one place
    Sign Out
  • My Lenovo Rewards
    {{loyaltyMsg}}
    My Lenovo Rewards
  • Cart
    {{cartCount}}
    Cart
  • Account
    avatar
    {{userInfo.userNameAbb || ''}}
    Hi , {{userInfo.firstNameFormat || userInfo.firstName}}!
    Sign In / Create Account
    Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Lenovo Family Hub
    Manage your family's orders all in one place
    Sign Out
  • My Lenovo Rewards
    {{loyaltyMsg}}
    My Lenovo Rewards
  • Cart
    {{cartCount}}
    Cart
  • Account
    avatar
    {{userInfo.userNameAbb || ''}}
    Hi , {{userInfo.firstNameFormat || userInfo.firstName}}!
    Sign In / Create Account
    Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Lenovo Family Hub
    Manage your family's orders all in one place
    Sign Out
  • My Lenovo Rewards
    {{loyaltyMsg}}
    My Lenovo Rewards
  • Cart
    {{cartCount}}
    Cart
  • Account
    avatar
    {{userInfo.userNameAbb || ''}}
    Hi , {{userInfo.firstNameFormat || userInfo.firstName}}!
    Sign In / Create Account
    Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Lenovo Family Hub
    Manage your family's orders all in one place
    Sign Out
  • My Lenovo Rewards
    {{loyaltyMsg}}
    My Lenovo Rewards
  • Cart
    {{cartCount}}
    Cart
  • Account
    avatar
    {{userInfo.userNameAbb || ''}}
    Hi , {{userInfo.firstNameFormat || userInfo.firstName}}!
    Sign In / Create Account
    Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Lenovo Family Hub
    Manage your family's orders all in one place
    Sign Out
  • My Lenovo Rewards
    {{loyaltyMsg}}
    My Lenovo Rewards
  • Cart
    {{cartCount}}
    Cart
  • Account
    avatar
    {{userInfo.userNameAbb || ''}}
    Hi , {{userInfo.firstNameFormat || userInfo.firstName}}!
    Sign In / Create Account
    Account
    My Lenovo Account
    Keep track of your wishlist, orders, and rewards all in one place
    Sign In / Create Account
    Welcome Back!
    Access your order, subscriptions, saved carts, rewards balance, and profile
    View My Account
    Orders
    View & track your orders
    Rewards
    Earn & redeem Rewards
    Profile
    Edit name, password, and account settings
    Wishlist
    Manage a wishlist of your favorite products
    Products
    Manage your devices, accessories
    Product Registration
    Register your product and/or update your warranty dates
    Lenovo Family Hub
    Manage your family's orders all in one place
    Sign Out
  • My Lenovo Rewards
    {{loyaltyMsg}}
    My Lenovo Rewards
  • Cart
    {{cartCount}}
    Cart
  • Products
  • Solutions
  • Services
  • Support
  • About Lenovo
  • Deals
  • Business
    • Lenovo Pro for Business Business Store Benefits Small Business Medium Business Large Business Partners
    • Explore
      AI Laptops Windows 11 Pro Small Business Solutions Legion PC's for Business
  • Student
    • Shop All Education
      Laptops by Major Laptops by Grade Student Accessories Students Discounts Need Help? Find Your PC Lenovo EDU Community Student Content Creators Lenovo Internships More in Education
    • Best Selling Laptops
      Yoga 7 2-in-1 Yoga Pro 9i Legion 7i Gen 9 Legion Pro 5i Gen 9 ThinkPad X1 Carbon Gen 12
    • Quick Links
      Need Help? Find Your PC Lenovo EDU Community Student Content Creators More in Education
  • Gaming
    • Shop All Gaming Gaming Laptops Gaming Desktops Gaming Monitors Gaming Accessories
      Gaming by Brand
      Lenovo Legion Lenovo LOQ Legion Go Accessories
    • Best Selling
      Legion 7i Gen 9 Legion Tower 5 Gen 8 Legion Pro 7i
      Quick Links
      Legion Gaming Community Legion Ultimate Support Gaming Content Creators More in Gaming
  • Laptops

    • Laptops by Use
      Work Gaming Education Creators
      Laptops by Brand
      Yoga & Lenovo Slim ThinkPad ThinkBook Legion Gaming LOQ Gaming IdeaPad
    • Laptops by Type
      2-in-1 Laptops Traditional Laptops Mobile Workstations Chromebooks Build Your Own Laptop
      AI PCs
      Lenovo Aura Edition AI PC Copilot+ PCs AI-Powered Gaming PCs Shop All Laptops
    • Best Selling Laptops
      ThinkPad X1 Carbon Gen 12 ThinkBook 16 Gen 8 Legion Pro 5i Gaming Yoga 7i 2-in-1 IdeaPad Slim 5
      Quick Links
      New Arrivals Laptop Deals Laptop Buying Guide Intel Favorites
  • Desktops

    • Desktops by Type
      Traditional Tower Small Form Factor All in Ones Tiny Desktops Thin Client Desktop Workstations Build Your Own Desktops Shop all Desktops
    • Desktops by Use Work Gaming Everyday Use & Entertainment Creators
      Desktops by Brand
      Legion Gaming LOQ Gaming ThinkCentre Yoga & IdeaCentre ThinkStation
    • Best Selling Desktops
      ThinkCentre Neo 50s IdeaCentre AIO I ThinkCentre M70q IdeaCentre 3i ThinkCentre M90q Tiny Legion Tower 7i
      Quick Links
      New Arrivals Desktop Deals
  • Workstations

    • Workstations by Type
      AI-Ready Workstations Desktop Workstations Mobile Workstations Build Your Own Shop All Workstations
    • Workstations by Brand
      ThinkPad ThinkStation
      Quick links
      Workstation Deals Compare Best Selling Workstations Workstations For AI
    • Best Selling Workstations
      ThinkPad P1 Gen7 ThinkPad P16s Gen 3 ThinkPad P16 Gen 2 ThinkPad P16v Gen2 ThinkPad P14s Gen5 ThinkStation P3 Tiny ThinkPad P3 Tower
  • Accessories
    • PC Accessories
      Docking Stations & Hubs Keyboards & Mice Cases & Bags Audio Solutions Chargers & Batteries Webcams Memory & Storage Cables & Adapters Wireless & Networking Stands & Mounts Privacy & Protection Shop All PC Accessories
    • Gaming Accessories
      Legion Go Accessories VR Headsets Graphic Cards Shop All Gaming Accessories
      Best Selling Brands
      Lenovo ThinkPad Logitech Jabra Shop All Brands
    • Streaming & Teen Essentials
      Accessories For Teens Streaming & Podcasting
      Quick Links
      Accessory Deals Find Compatible Accessories Bundle & Save New Arrivals Warranty Lookup & Extension Web Exclusives
  • Software
    • Software by Type
      Security PDF Editor Photo, Video, and Media Education Monthly Subscriptions Shop All Software
    • Software by Brand
      Foxit Norton McAfee Cyberlink Corel Absolute
    • Best Selling
      Norton 360 Standard 1 Device 3 Years McAfee LiveSafe 1 device, 15 Month Foxit PDF Editor Cyberlink Director Suite 365 + Promeo
    • SaaS
      Microsoft 365 Google Workspace
  • Monitors
    • Monitors by Size
      29″ or more 27″ - 28″ 23″ - 24.5″ Less than 23″ Portable Monitors
    • Monitors by Use
      Gaming Monitors​ Business Monitors​ Business for Professionals​ Docking Monitors​ Monitors for Home​
    • Monitors by Resolution & Shape​
      4K - Best QHD - Better FHD - Good Curved Ultrawide
    • Quick Links Monitor Deals​ Shop All Monitors Monitor Buying Guide Monitor Accessories​ ThinkVision
  • Tablets

    • Explore Tablets Android Tablets Tablets for Business Tablets for Creators Tablets for Students Tablet Accessories Tablet Deals All Tablets
    • Best Selling Tablets
      New Idea Tab Pro New Lenovo Tab Yoga Tab Plus Legion Tab Lenovo Tab Plus Lenovo Tab M11 Lenovo Tab M9
  • Servers & Storage
    • Explore Servers AI Servers Rack Servers Tower Servers Edge Servers Mission Critical Servers Multi-Node Servers Neptune Liquid Cooling Supercomputing Servers Options & Accessories Servers Deals
    • Explore by Processor AMD Servers Intel Servers Explore Storage Unifed Storage Storage Area Network Direct-Attached Storage Tape Storage Storage Deals
    • Hyperconverged Infrastructure
      ThinkAgile HX Series (with Nutanix) ThinkAgile MX and SXM Series
      (with Microsoft)
      ThinkAgile VX Series (with VMware) Explore Software Infrastructure Software Management Software Lenovo Open Cloud Automation Cloud Marketplace
  • AI
    • Explore AI PCs Lenovo Aura Edition Lenovo AI PCs Business AI PCs Shop AI PCs Lenovo AI Applications
    • AI PCs
      Copilot+ PC AI PC AI-Powered Gaming PCs AI-Ready Workstations Shop All AI PCs
    • Explore AI Servers Enterprise Rack 8 GPU Rack Edge Mission-Critical Supercomputing
    • Best Selling
      Yoga Slim 7i Gen 9 X1 Carbon Gen 13 SR630 V4 Rack Server Yoga 9i 2-in-1 ThinkPad X9
  • Deals
    • PC Deals
      Laptop Deals ThinkPad Deals Gaming Deals 2-in-1 Laptop Deals Desktop Deals Workstations Deals Build Your Own PC
    • Other Deals
      Clearance PC Accessories Deals Monitor Deals Tablet Deals Server & Storage Deals Electronic Deals
    • Membership & Programs
      Lenovo Coupons Lenovo Pro for Business My Lenovo Rewards Lenovo Financing All Discount Programs Lenovo Live
  • AI
    • AI
      Smarter AI For All AI-Powered Digital Workplace Solutions AI PCs Hybrid AI Neptune Liquid Cooling AI Services Lenovo AI Innovators Smarter AI Success Stories Inclusive AI
  • Hybrid Cloud
    • Hybrid Cloud Multi Cloud Solutions Cloud Service Provider
    • TruScale Hybrid Cloud Deloitte-Hybrid Cloud Microsoft-Hybrid Cloud Nutanix-Hybrid Cloud SAP-Hybrid Cloud VMware-Hybrid Cloud
  • Digital Workplace
    • Digital Workplace Solutions Care of One Digital Workplace Offerings Virtual Desktop Infrastructure Smart Collaboration
  • Edge
    • AI for All AI for All Edge AI Edge Computing Lenovo AI Innovators
  • Sustainability
    • Sustainability Lenovo Value Recovery Asset Recovery Services CO2 Offset Services Circularity Energy Efficiency Climate Action
  • TruScale
    • TruScale TruScale IaaS TruScale DaaS TruScale Data Management TruScale HPC Truscale Infinite Storage TruScale DaaS Calculator
  • Solutions by Industry
    • Solutions by Industry Architecture, Engineering
      & Construction
      Education Healthcare
    • Manufacturing Media & Entertainment OEM Infrastructure Solutions OEM Solutions
    • Product Development Retail SMB Infrastructure Solutions Telco Infrastructure Solutions
  • Alliance Partners
    • Alliance Partners Cisco AMD Intel Lenovo Solutions
      Accelerated by Intel
      Microsoft
    • Nutanix Red Hat NVIDIA SAP VMWare Lenovo AI Innovators
  • Other Solutions
    • Other Solutions AR/VR Backup & Disaster Recovery Big Data & Analytics Business Applications Database
    • Data Management High-Performance Computing Kubernetes & Containers SAP Solutions Windows 11
  • Resources
    • Resources Customer Success Stories Smarter Infrastructure
      Customer Stories
      Storage Customer Stories
    • Resource Library Lenovo Press Tech Today Resource Center
    • Lenovo StoryHub Infrastructure Solutions Events Lenovo Executive Briefing Center
  • Consumer Services
  • Advisory Services
    • Advisory Services Sustainability Workshop AI Services
  • Deployment Services
    • Deployment Services Chrome OS Zero-Touch Smart Collaboration
  • Managed Services
    • Managed Services DWS Managed Services Collaboration Suite Digital Intelligence Plus
  • Security Services
    • Security Services Cybersecurity ThinkShield Smart Lock
  • Support Services
    • Premier Support Premier Support Plus Premier Support for Data Centers Premier Enhanced Storage Support
    • Hardware Support
      Accidental Damage Protection Premium Care Premium Care Plus Sealed Battery Keep Your Drive Smart Performance Multivendor Support Services
    • Gaming Support
      Legion Ultimate Support
  • TruScale
    • TruScale TruScale Backup with Veeam TruScale DaaS TruScale DaaS Calculator TruScale for HPC TruScale Hybrid Cloud TruScale Infrastructure
  • Warranty Lookup
  • Sales Support
    • Sales Support
      For Home
      1-855-253-6686
      For Business
      1-866-426-0911
      Chat now
      Visit Sales Support
  • Order Support
    • Order Support Track Your Order Warranty Lookup
      For Home
      1-855-253-6686
      For Business
      1-866-426-0911
      Chat now
  • Technical Support
  • Track Your Order
  • Warranty Lookup
  • Lenovo Parts
  • Out-of Warranty Repairs
  • Who We Are
    • Who We Are Our Leadership Our History
  • What We Do
  • Our Impact
    • Our Impact Diversity & Inclusion Ethics & Security Sustainability
  • Careers
  • Investor Relations
  • Events
  • Locations
  • Sponsorships
  • Alliances
  • News
  • Compliance
  • Weekly Deals
  • Laptop Deals
  • ThinkPad Deals
  • Business Deals
  • Gaming Deals
  • Desktop Deals
  • Workstation Deals
  • Accessories Deals
  • Monitors Deals
  • Electronic Deals
  • Servers & Storage Deals
  • Clearance
Glossary Hero    
Learn More    


What is environment variable?

An environment variable is a dynamic-named value on your computer that can affect how running processes will behave on a computer. They are part of the environment in which a process runs. For example, an environment variable can store the location of your home directory or your preferred editor. Applications and the system use these variables to find out specific data about your operating system or your session that is running on the computer.

Can environment variables affect the way programs run?

Yes, environment variables can significantly affect the way programs run. They can dictate where an application stores temporary files, where to find user profiles, or how to handle regional settings like date format and language. Think of them as shortcuts that tell programs where to go and what rules to follow when they're operating. By changing an environment variable, you might change the behavior of a program without altering the program itself.

How do I view environment variables on my system?

If you're using a Windows system, you can view environment variables by going to 'System Properties' and then clicking on the 'environment variables' button. For Linux® or Unix-based systems, you typically use the printenv, env, or echo commands in the terminal to view them. In both cases, these variables provide important information about system behavior and user preferences.

What's the difference between a global and a local environment variable?

Global environment variables are accessible by all the processes running under the operating system, while local environment variables are only accessible to the process in which they were set. In practical terms, if you set a global variable, any program you run after setting it will be aware of that variable. Conversely, local variables will only be recognized by the program or script that sets them and any child processes it spawns.

How to set an environment variable?

The method to set an environment variable depends on the operating system you're using. On Windows, you could set an environment variable through the 'environment variables' dialog in System Properties or by using the set command in the command prompt. On Unix-like systems, you can set them in a terminal by using the export command, like export VAR_NAME="value". Keep in mind that this will only set them for the current session or script unless added to a startup file like .bashrc.

Can environment variables be used for storing sensitive data?

Environment variables can be used to store sensitive data, but it's not always recommended, especially if your system is shared or if the data is particularly sensitive, like passwords. The reason is that environment variables can be easily accessed by any process running in the user context. This means that if your system is compromised, the sensitive data could be at risk.

How do I make a permanent change to an environment variable?

For permanent changes, you need to set the environment variable in a place where your shell or system reads from during the start-up process. On Windows, this involves setting the variable in the System Properties under environment variables. On Unix-like systems, you would add the export command to a profile script, like .bash_profile or .bashrc, depending on your specific shell and setup.

Can environment variables be used to configure software behavior?

Yes, this is one of their primary uses. By setting environment variables, you can change settings for software without altering code. This is especially useful for software that needs to behave differently in development versus production environments or when running on different users' machines. For instance, you could have an environment variable that switches between different database servers or config files.

What's the usual way to access environment variables in a program?

To access an environment variables within a program, you would typically use specific functions provided by your programming language. For instance, in Python, you might use os.environ or os.getenv() to fetch an environment variable. In languages like C or C++, you would use the getenv function from the standard library. These functions read the current values of the environment variables and allow you to use them in your program.

Would different users on the same machine see different environment variables?

Yes, that's possible because users can have local environment variables set up in their own sessions that are different from the global environment variables or those of other users. For example, each user might have a different path variable or different settings to indicate their home directory or document paths.

Can I use environment variables to help with network configuration?

Indeed, environment variables can be handy for storing network configuration details. For example, you might store an Internet protocol (IP) address in an environment variable that your scripts or programs can then reference. This makes it easier to change network settings without modifying the actual code, just the variables.

How can I list all the environment variables and their values in a script?

In a shell script on a Unix-like system, you can use the env or printenv commands to list all environment variables and their values. In Windows, you can list all environment variables by running the set command in a command prompt or PowerShell. This will output all the current variables and their values to the screen or wherever you redirect the output.

What's the protocol for naming environment variables?

While there's no strict protocol for naming environment variables, there are conventions. Names are typically uppercase with underscores to separate words, like API_KEY or DATABASE_URL. This makes them easily distinguishable from regular variables in code. It's important to avoid name collisions with standard environment variables, so it's a good practice to use unique prefixes related to your application.

How are environment variables different from system properties or settings?

Environment variables are a set of dynamic named values that can be used by processes running on a computer. System properties or settings, however, are typically more permanent configurations that control how the system behaves. While environment variables can change frequently and are often specific to a session, system properties tend to be changed less frequently and apply system wide.

Can environment variables be used in batch files or scripts?

Yes, that's one of their most common uses. In batch files or shell scripts, you can use environment variables to make your scripts flexible and to pass information into and out of the script. For example, you can use an environment variable to specify a directory to work in, so the same script can operate in different environments without changes.

Looking for a Great Deal?
Shop Lenovo.com for great deals on A+ Education PCs, Accessories, Bundles and more.
Shop Deals Now

{"pageComponentDataId":"8bc8193cx115a-4f84-8dd1-9d1ed316ada7","pageComponentId":"8bc8193cx115a-4f84-8dd1-9d1ed316ada7","pageComponentDataLangCode":"en_us","configData":{"jumpType":"currentTab","miniCardVerticalNumber":"3","headlineColor":"black","displayNumber":"","styleMode":"vertical","miniCardHoMode":"2","headline":"","products":[{"number":{"t_id":"len101y0050","language":{"fr_ca":"","en_us":"len101y0050","en_ca":"","en":"len101y0050","fr":""},"id":"Pagedf7fa2e6-5411-4968-96ec-22ce87ff09a9"}},{"number":{"t_id":"len101g0037","language":{"fr_ca":"","en_us":"len101g0037","en_ca":"","en":"len101g0037","fr":""},"id":"Page4c436c97-88d6-4c43-bde2-ce975f208d78"}},{"number":{"t_id":"len101t0111","language":{"fr_ca":"","en_us":"len101t0111","en_ca":"","en":"len101t0111","fr":""},"id":"Pagec2eb7dbc-114d-4b97-a262-0ffee5f0885c"}},{"number":{"t_id":"len101y0042","language":{"fr_ca":"","en_us":"len101y0042","en_ca":"","en":"len101y0042","fr":""},"id":"Page5fe96cf7-0cb5-47a7-97a0-2232d61276c8"}},{"number":{"t_id":"len101g0035","language":{"fr_ca":"","en_us":"len101g0035","en_ca":"","en":"len101g0035","fr":""},"id":"Pageebf78ee5-d52b-4d11-bed1-fff4f95a0682"}},{"number":{"t_id":"len101y0055","language":{"fr_ca":"","en_us":"len101y0055","en_ca":"","en":"len101y0055","fr":""},"id":"Page05c7ed8d-6024-4915-847c-1bfb1db0b422"}},{"number":{"t_id":"len101i0100","language":{"fr_ca":"","en_us":"len101i0100","en_ca":"","en":"len101i0100","fr":""},"id":"Pagebf82ee74-aae9-4750-ad2f-b94999c8972d"}},{"number":{"t_id":"len101t0107","language":{"fr_ca":"","en_us":"len101t0107","en_ca":"","en":"len101t0107","fr":""},"id":"Page731badf5-3faf-41f8-9818-892c9ded2fd4"}},{"number":{"t_id":"len101y0053","language":{"fr_ca":"","en_us":"len101y0053","en_ca":"","en":"len101y0053","fr":""},"id":"Pageda987623-2288-4cc5-8dc7-7b966c831cc9"}},{"number":{"t_id":"len101l0050","language":{"fr_ca":"","en_us":"len101l0050","en_ca":"","en":"len101l0050","fr":""},"id":"Page3cdc4ae4-d8ec-4f34-a249-be90bc14137c"}},{"number":{"t_id":"len101q0010","language":{"fr_ca":"","en_us":"len101q0010","en_ca":"","en":"len101q0010","fr":""},"id":"Page11730abd-15c3-45ae-bc70-cea86ef738ee"}}]},"urlPrefix":"AAAAAAAF","title":"recommended-products-rhs-edu-stem","pageId":"3f917b7a-3596-425f-8ced-29328ac8fe5e","urlEdit":0,"uri":"/FragmentDirectory/education/what-is-stem/recommended-products-rhs-edu-stem.frag","pageComponentUuid":"8bc8193cx115a-4f84-8dd1-9d1ed316ada7"}
coming coming
Starting at
List Price
Est Value
Est Value:
List Price
Est Value (Estimated Value)
List Price is Lenovo’s estimate of product value based on the industry data, including the prices at which first and third-party retailers and etailers have offered or valued the same or comparable products. Third-party reseller data may not be based on actual sales.
Estimated value is Lenovo’s estimate of product value based on industry data, including the prices at which Lenovo and/or third-party retailers and e-tailers have offered or valued the same or comparable products. Third-party data may not be based on actual sales.
Learn More
See More
See Less
View {0} Model
View {0} Models
Delivery options for {0}
Part Number
Features
See More
See Less
Compare
Added!
Great choice!
You may compare up to 4 products per product category (laptops, desktops, etc). Please de-select one to add another.
View Your Comparisons
Add To Cart
Add To Cart
We're sorry,
Products are temporarily unavailable.
Continue Shopping
Learn More
Coming Soon
Featured Product
Featured Products
Oops! No results found. Visit the categories above to find your product.
Save
Shop
  • Student Deals
  • K-12 Student Laptops
  • Student Accessories
  • Laptops by Major
Education resource
Explore
  • What is STEM?
  • Best Laptops for College
  • Student & Teacher Discounts
  • Lenovo Sustainability Programs
Education carry case

While every effort has been made to ensure accuracy, this glossary is provided for reference purposes only and may contain errors or inaccuracies. It serves as a general resource for understanding commonly used terms and concepts. For precise information or assistance regarding our products, we recommend visiting our dedicated support site, where our team is readily available to address any questions or concerns you may have.

Enter email to receive Lenovo marketing and promotional emails. Review our Privacy Statement for more details.
Please enter the correct email address!
Email address is required
  • Facebook
  • Twitter
  • Youtube
  • Pinterest
  • TikTok
  • instagram
Select Country / Region:
Country
AndroidIOS

undefined

  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined

undefined

  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined

undefined

  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined

undefined

  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined

undefined

  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
  • undefined
PrivacySite MapTerms of UseExternal Submission PolicySales terms and conditionsAnti-Slavery and Human Trafficking Statement
Compare  ()
x
Call

                    
                
Personal
We noticed that you´re logged in more than one store ([ Public and Affinity). Please select which experience you'd like to open in this tab:
We've noticed that you are logged into more than one store. Personal and the Lenovo Pro Store for Business. Where would you like to continue shopping?
We noticed that you´re logged in more than one store (Public and Education store). Where do you want to go in this tab?
Select Your Store
Affinity Discount store
Lenovo Education
Lenovo Pro for Business
https://pre-p4-ofp.static.pub//fes/cms/2024/12/02/pkda4kh4wr4srvp5ldwoltlh42y37g181785.png
//pre-p4-ofp.static.pub//fes/cms/2024/12/02/nhkds6nq9n7my074c4ucvg16jq97g1201734.png
//p2-ofp.static.pub/ShareResource/na/myaccount/routes-modal-images/pro-new@2x.jpg
//p3-ofp.static.pub/ShareResource/na/myaccount/routes-modal-images/01_Ideapad_5_Gen_7_15inch_Distance_Learning@2x.jpg
//pre-p1-ofp.static.pub//fes/cms/2024/12/02/erdkzhi9w4ja7yricok20xzg1r0ei0886314.png
//pre-p1-ofp.static.pub//fes/cms/2024/12/02/pam9r8a4431kd8ahaqkel5z4li3a2t265931.png
//pre-p1-ofp.static.pub//fes/cms/2024/12/02/erdkzhi9w4ja7yricok20xzg1r0ei0886314.png
//pre-p4-ofp.static.pub//fes/cms/2024/12/02/gi5408qeese1ckqhh10okiw4jmuv0l815672.png
https://p4-ofp.lenovouat.com//fes/cms/2024/07/24/tn2i0p2itvime6sxqg9si9l5r6nj06539662.svg
Track orders, manage products and warranty, save addresses, payments & more
Create and save your favorite products with a custom Wishlist
Save up to 5% on Think PCs with free Premier Support
VIP access to exclusive perks & savings
1:1 tech support from a Business Specialist
For College Students and Educators
Discounts on purchases and exclusive specials
Expert advice, content, and connect with others in the Lenovo EDU community
Verify once and get access for a full year
Members only exclusive discounts on Lenovo PCs, accessories, software and more!
Free shipping on web orders
Award-winning service and support
Continue
We have noticed that you have logged in more than one store. Where do you want to go in this Tab?

Select Your Store