当前位置:网站首页>永久设置source的方法
永久设置source的方法
2022-07-27 08:29:00 【龙之幻】
永久设置source的方法:
方法一:直接在终端使用 gedit 或 vi 编译 .bashrc 文件。
(1)终端打开配置文件(以gedit为例)。
gedit ~/.bashrc
(2)在文件末尾处手动添加环境并保存。以添加如下内容为例:
source ~/ceshi/devel/setup.bash

(3)使配置生效。
source ~/.bashrc
方法二:直接在文件管理的主目录中打开 .bashrc 文件。
(1)用快捷键 Ctrl + H 显示隐藏文件,找到并打开 .bashrc 文件。
(2)按照方法一的第(2)步和第(3)步完成环境配置。
方法三:使用 echo 的重定向。
(1)echo “想要的内容” >> 文件名(将想要的内容追加到文件后,对文件之前的内容不修改,只进行增添,也叫追加重定向。)
#配置环境
echo "source ~/demo02_ws/devel/setup.bash" >> ~/.bashrc
#使配置生效
source ~/.bashrc
边栏推荐
- JS basic exercises
- I can't figure out why MySQL uses b+ trees for indexing?
- The response of the database interface is very slow
- Attack and defense world MFW
- Plato farm is expected to further expand its ecosystem through elephant swap
- 面试官:什么是脚手架?为什么需要脚手架?常用的脚手架有哪些?
- Help send some recruitment. If you are interested, you can have a look
- 阿里云国际版回执消息简介与配置流程
- 虚拟机克隆
- JS advanced knowledge - function
猜你喜欢

SSTI template injection

Notes in "PHP Basics" PHP

Design and development of GUI programming for fixed-point one click query

Alibaba cloud international receipt message introduction and configuration process
![[MRCTF2020]PYWebsite 1](/img/d4/2d9cd06abd7188add668cde77d3075.png)
[MRCTF2020]PYWebsite 1

All in one 1329 cells (breadth first search)

Apache SSI remote command execution vulnerability

带宽 与 货币
![[NPUCTF2020]ReadlezPHP 1](/img/d9/590446b45f917be3f077a9ea739c20.png)
[NPUCTF2020]ReadlezPHP 1

Ubuntu: install PostgreSQL
随机推荐
"PHP Basics" tags in PHP
Set set
Openresty + keepalived 实现负载均衡 + IPV6 验证
"PHP Basics" uses echo statements to output information
Risk control and application of informatization project
[target detection] yolov6 theoretical interpretation + practical test visdrone data set
How to uninstall -- Qianxin secure terminal management system
Using ecological power, opengauss breaks through the performance bottleneck
How does kettle handle text data transfer as' 'instead of null
PHP realizes data interaction with MySQL
1178 questions of Olympiad in informatics -- ranking of grades
信息化项目风险控制与应用
第2章 前台数据展现
Creation and simple application of QPushButton button button
1024 | in the fourth year officially called Menon, the original intention is still there, and continue to move forward
P7 Day1 get to know the flask framework
OPPO 自研大规模知识图谱及其在数智工程中的应用
2022/7/26 exam summary
Apache SSI remote command execution vulnerability
Use of elastic box / expansion box (Flex)