Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How linux views and modifies PATH environment variables

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how linux views and modifies PATH environment variables. I hope you will get something after reading this article. Let's discuss it together.

Check PATH:echo $PATH to add mongodb server column modification method 1: export PATH=/usr/local/mongodb/bin:$PATH / / after the configuration, you can view the configuration results through echo $PATH. Effective method: effective immediately: temporary changes can only be effective in the current terminal window. After the current window is closed, the original path configuration user limitations will be restored: method 2: modify the .bashrc file: vim ~ / .bashrc file: vim ~ / .bashrc file / / add: export PATH=/usr/local/mongodb/bin:$PATH effective method: (there are two following) 1. Close the current terminal window Re-open a new terminal window to take effect 2. Enter the "source ~ / .bashrc" command, effective immediately: permanent valid user limitation: modify method 3 for current users only: find the line that sets PATH by modifying the profile file: vim / etc/profile / bashrc Add export PATH=/usr/local/mongodb/bin:$PATH effective method: system restart validity period: permanent valid user limitation: for all users after reading this article, I believe you have a certain understanding of "how linux views and modifies PATH environment variables". If you want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

  • Brief introduction of JEESZ distributed Framework

    Introduction 1. Screenshot of the core code structure of the project

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report