zoukankan      html  css  js  c++  java
  • linux .bashrc文件修改和生效

    linux .bashrc文件修改和生效
     
    cd  home  ==>选择用户文件夹=》ll -la  .bashrc
     
    使用man bash命令查看到的联机帮助文件中的相关解释如下:
    .bashrc - The individual per-interactive-shell startup file.
      www.2cto.com  
    这个文件主要保存个人的一些个性化设置,如命令别名、路径等。下面是个例子:
     # User specific aliases and functions
     PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
     LANG=zh_CN.GBK
     export PATH LANG
     
     alias rm='rm -i'
     alias ls='/bin/ls -F --color=tty --show-control-chars'
     
    例子中定义了路径,语言,命令别名(使用rm删除命令时总是加上-i参数需要
    用户确认,使用ls命令列出文件列表时加上颜色显示)。
      www.2cto.com  
        每次修改.bashrc后,使用source ~/.bashrc(或者 . ~/.bashrc)
    就可以立刻加载修改后的设置,使之生效。
     
    一般会在.bash_profile文件中显式调用.bashrc。登陆linux启动bash时首先会
    去读取~/.bash_profile文件,这样~/.bashrc也就得到执行了,你的个性化设
    置也就生效了。
  • 相关阅读:
    poj 2251
    poj 1321
    poj 2777
    poj 3468
    poj 2318
    javascript
    buhui
    swift 构造器
    mac上不了网
    字体
  • 原文地址:https://www.cnblogs.com/ExMan/p/9210241.html
Copyright © 2011-2022 走看看