2015-01-0810:49:29关于登录linux时,/etc/profile、~/.bash_profile等几个文件的执行过程。 在登录Linux时要执行文件的过程如下: 在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile、...
分类:
系统相关 时间:
2015-01-08 12:48:27
阅读次数:
196
在用户的角度,SHELL的类型有两种:登录式shell:正常通过某客户端登录su-USERNAME或su-lUSERNAME非登录式shell:suUSERNAME图形终端下打开的命令窗口自动执行的shell脚本bash的配置文件:全局配置:/etc/profile,/etc/profile.d/*.sh,/etc/bashrc个人配置:~/.bash_profile,~/...
分类:
系统相关 时间:
2015-01-08 07:08:09
阅读次数:
190
在用户的角度,SHELL的类型有两种:登录式shell:正常通过某客户端登录su-USERNAME或su-lUSERNAME非登录式shell:suUSERNAME图形终端下打开的命令窗口自动执行的shell脚本bash的配置文件:全局配置:/etc/profile,/etc/profile.d/*.sh,/etc/bashrc个人配置:~/.bash_profile,~/...
分类:
系统相关 时间:
2015-01-08 07:07:15
阅读次数:
166
以前经常配置,好久不用就忘了,感觉还是写在博客中。1.进入到根目录cd~编辑vi.bash_profile直接把需要添加的路径添加到PATH后面,然后source.bash_profile2.修改主机名进入到/etc/sysconfig/network下修改,一般对应着也需要修改映射文件hosts,进入到/etc/hosts下修改即可
分类:
系统相关 时间:
2015-01-07 07:01:58
阅读次数:
217
有了这个配置,妈妈再也不用担心我的失误操作了
在 ~ 下 .bashrc 或者.bash_profile 加入
mkdir -p ~/.trash
alias rm=trash
alias r=trash
alias rl='ls ~/.trash'
alias ur=undo
undo()
{
mv -i ~/.trash/$@ ./
}
trash()
{
mv $@ ~/.tra...
分类:
系统相关 时间:
2015-01-07 00:41:00
阅读次数:
239
终端下输入:vi .bash_profile 编辑环境变量: export?COCOS_CONSOLE_ROOT=/Users/jiazedong/Cocos2d-x/cocos2d-x-3.2/cocos2d-x-3.2/tools/cocos2d-console/bin
export?PATH=$COCOS_CONSOLE_ROOT:$PATH
expor...
分类:
移动开发 时间:
2015-01-04 17:24:27
阅读次数:
245
1. 切换到用户主目录$ cd 2. 编辑或新建.bash_profile文件3. 添加别名命令别名设置语法:alias [别名]='[指令名称]'注意:等号两边均无空格,指令名称中如有空格,需用引号包裹例如:alias ll='ls -l'4. 重载该配置文件$ source ./bash_pr....
分类:
系统相关 时间:
2015-01-04 15:13:10
阅读次数:
336
mac下环境变量的配置和命令和linux下一致~查看当前全局变量 echo $PATH //修改环境变量 sudo vim ~/.bash_profile //linux下修改好像是修改 sudo vim /etc/profile ,这个待定。 mac下也有该文件,但会引用~/.bash_pro.....
分类:
系统相关 时间:
2014-12-31 00:58:28
阅读次数:
358
登录:bash先执行/etc/profile,再调用~/.bash_profile.注销:bash调用~/.bash_logout.执行新shell:在kde,gnone,icewm等桌面管理程序中,执行终端程序或手动执行/bin/bash,或在编辑程序中调用shell,会先调用/etc/bash....
分类:
系统相关 时间:
2014-12-26 14:23:15
阅读次数:
346
Adding in a Permanent Location To make the new?path?stick permanently you need to create a?.bash_profile?file in your home directory and set the?path?there. This file control various Terminal...
分类:
其他好文 时间:
2014-12-25 00:19:38
阅读次数:
285