都是自己在实践过程中遇到的,首先是自己安装apache-maven进行简单的认识学习的时候想看看my-app项目的tree结果发现bash:treecommandnotfound解决这个问题,在查阅资料后发现,前提是我是centos6.5的最小化安装在家目录下打开文件.bash_profile后发现PATH=$PATH:$HOME/bin将其..
分类:
其他好文 时间:
2014-08-05 03:15:28
阅读次数:
245
文件
内容
/etc/profile 对所有用户开放的全局配置文件
~/.bash_profile 某个用户个人的启动文件,能用作个人的全局设置
~/.bash_login 如果 ~/.bash_profile找不到,则bash尝试读取这个脚本
~/.profile 如果这两个文件~/.bash_profile, ~/.bash_login 都找不到,bash就读取这个文件,这是个默认文件...
分类:
其他好文 时间:
2014-08-05 00:43:08
阅读次数:
209
转自:https://wido.me/sunteya/understand-bashrc-and-profile/在一般的 linux 或者 unix 系统中, 都可以通过编辑 bashrc 和 profile 来设置用户的工作环境, 很多文章对于 profile 和 bashrc 也都有使用, 但...
分类:
其他好文 时间:
2014-07-29 17:30:12
阅读次数:
350
1.找到android sdk的本地路径,adb命令在platform-tool下面,记为XXXX我的路径是(/Applications/eclipse/android-sdk-mac_x86/platform-tools)2.打开终端输入touch .bash_profile open -e .b...
分类:
移动开发 时间:
2014-07-29 16:49:52
阅读次数:
181
环境:centos6.0_x64oracle版本:11g步骤:wgethttp://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.30.tar.gztarzxvfrlwrap-0.30.tar.gzcdrlwrap-0.30./configuremakemakeinstallvi/home/oracle/.bash_profile最后执行:#.~oracle/.bash_profile这样上下键和回退键都可以使用了。
分类:
数据库 时间:
2014-07-29 15:44:49
阅读次数:
296
在Ubuntu的某些版本下,比如10.10,会出现以下奇怪问题:1. 安装jdk我下载的jdk是bin格式的,直接运行解压,得到一个文件夹。这个文件夹作为jdk的安装目录,可以拷贝到任意目录。然后配置环境变量~/.bashrc,在最后添加:export JAVA_HOME=export JRE_HO...
分类:
系统相关 时间:
2014-07-29 10:39:46
阅读次数:
369
1.0 查看是否存在bash_profilecd ~/.bash_profile2.0 如果不存在则创建bash_profile Mac环境配置文件touch ~/.bash_profile3.0 打开bash_profileopen -t ~/.bash_profile4.0 添加go 环...
分类:
其他好文 时间:
2014-07-27 22:45:39
阅读次数:
228
bashrc,bash_profile和/etc/profile最近老出现在shell里面能跑的程序用鼠标双击app去不能跑.究其原因是因为环境变量的问题.在类unix系统中一般有三个bash配置文件:~/.bashrc 当前用户使用的配置文件~/.bash_profile 当前用户使用的配置文件/...
分类:
其他好文 时间:
2014-07-27 10:09:12
阅读次数:
250
先安装 驱动1.sudodpkg-i XXX.deb2.sudoapt-getupdate3.sudoapt-getinstallcuda4.gedit ~/.bashrc添加如下内容12export PATH=/usr/local/cuda-6.0/bin:$PATHexport LD_LIBRA...
分类:
其他好文 时间:
2014-07-25 03:17:56
阅读次数:
238
重新安装了limux系统,由于长时间没有配置过java环境和Go环境,竟然不知道了都需要哪些东西了,因此就在博客里面总结一下,以免再次忘记,我都配置在/etc/profile文件里面,以前用Ubuntu时,配置在.bash_profile...
分类:
编程语言 时间:
2014-07-25 00:02:24
阅读次数:
301