linux下修改/etc/profile文件
来源:互联网 发布:国外免费linux服务器 编辑:程序博客网 时间:2024/05/01 01:13
通常情况下,/etc/profile文件是只读的,直接用vi或gedit打开修改后是无法保存的。要修改profile,需要取得root权限,(使用gedit编辑)应该如下:
$sudo gedit /etc/profile
或者
$sudo -s
$gedit /etc/profile
这样打开profile文件,修改后就可以保存了。
让修改后的profile文件立即生效的方法:
法1:
$. /etc/profile
.和/etc/profile之间有一个空格
发2:
$source /etc/profile
source命令也称为“点命令”,也就是一个点符号(.)。source命令通常用于重新执行刚修改的初始化文件,使之立即生效,而不必注销并重新登录。
0 0
- linux下修改/etc/profile文件
- 修改mac系统下/etc/profile文件
- linux环境变量/etc/profile文件修改错误
- linux修改/etc/profile权限
- 解决:修改/etc/profile文件后无法进入Linux Ubuntu
- 修改/etc/profile文件后不能使用linux命令
- linux如何进入系统文件/etc/profile修改内容
- Linux下.bashrc文件和/etc/profile文件的区别
- Linux /etc/profile文件详解
- Linux /etc/profile文件详解
- Linux/etc/profile文件详解
- Linux /etc/profile文件详解
- Linux /etc/profile文件详解
- Linux/etc/profile文件详解
- Linux /etc/profile文件详解
- Linux /etc/profile文件详解
- Linux /etc/profile文件详解
- Linux /etc/profile文件详解
- iOS返回的JSON数据中的unicode 转换为中文
- python fabric 免密码输入执行任务 踩得坑
- ES6的新特性
- 启动自执行 CommandLineRunner
- ECMAScript6
- linux下修改/etc/profile文件
- 新年快乐动态PPT模板免费分享
- DVWA - File Inclusion (low, medium, high)
- kendo 正则表达式验证的 bug
- Not Hello World
- 打造优雅的PC环境软件篇
- PHP abstract与interface之间的区别
- 顶点着色器-经过的空间变换
- oracle导出问题