System Grab Bag

View all TLDR pages from common (or from all pages)

export

Command to mark shell variables in the current environment to be exported with any newly forked child processes. More information: https://www.gnu.org/software/bash/manual/bash.html#index-export.
  • Set a new environment variable:
    export {{VARIABLE}}={{value}}
  • Remove an environment variable:
    export -n {{VARIABLE}}
  • Mark a shell function for export:
    export -f {{FUNCTION_NAME}}
  • Append something to the PATH variable:
    export PATH=$PATH:{{path/to/append}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.